Use Player->isBanned() instead of repeating code

This commit is contained in:
Dylan K. Taylor 2017-12-06 10:37:47 +00:00
parent d03fdd5f72
commit e2d66ac96d

View File

@ -1834,7 +1834,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
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)
){
return true;