Fixed warn-ops config being useless

This commit is contained in:
Dylan K. Taylor 2017-06-11 19:07:41 +01:00
parent 487233a101
commit 0612244b5e

View File

@ -922,7 +922,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->spawnToAll(); $this->spawnToAll();
if($this->server->getUpdater()->hasUpdate() and $this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){ if($this->server->getUpdater()->hasUpdate() and $this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE) and $this->server->getProperty("auto-updater.on-update.warn-ops", true)){
$this->server->getUpdater()->showPlayerUpdate($this); $this->server->getUpdater()->showPlayerUpdate($this);
} }