mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Use Player->isBanned() instead of repeating code
This commit is contained in:
parent
d03fdd5f72
commit
e2d66ac96d
@ -1834,7 +1834,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(
|
if(
|
||||||
($this->server->getNameBans()->isBanned($this->iusername) or $this->server->getIPBans()->isBanned($this->getAddress())) and
|
($this->isBanned() or $this->server->getIPBans()->isBanned($this->getAddress())) and
|
||||||
$this->kick("You are banned", false)
|
$this->kick("You are banned", false)
|
||||||
){
|
){
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user