mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +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){
|
||||
$username = strtolower($username);
|
||||
if($this->isOp($username)){
|
||||
return true;
|
||||
if($this->server->api->dhandle("api.ban.whitelist.check", $ip) === false){
|
||||
return true;
|
||||
}elseif($this->whitelist->exists($username)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user