mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
OP players are automatically whitelisted
This commit is contained in:
parent
dccfbfd572
commit
2c81518c5d
@ -314,6 +314,8 @@ class BanAPI{
|
|||||||
|
|
||||||
public function inWhitelist($username){
|
public function inWhitelist($username){
|
||||||
$username = strtolower($username);
|
$username = strtolower($username);
|
||||||
|
if($this->isOp($username)){
|
||||||
|
return true;
|
||||||
if($this->server->api->dhandle("api.ban.whitelist.check", $ip) === false){
|
if($this->server->api->dhandle("api.ban.whitelist.check", $ip) === false){
|
||||||
return true;
|
return true;
|
||||||
}elseif($this->whitelist->exists($username)){
|
}elseif($this->whitelist->exists($username)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user