diff --git a/src/player/Player.php b/src/player/Player.php index 007a74d2c..7051290b6 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -279,7 +279,11 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ $this->uuid = $this->playerInfo->getUuid(); $this->xuid = $this->playerInfo instanceof XboxLivePlayerInfo ? $this->playerInfo->getXuid() : ""; - $this->perm = new PermissibleBase($this->server->isOp($this->username) ? [DefaultPermissions::ROOT_OPERATOR => true] : [DefaultPermissions::ROOT_USER => true]); + $rootPermissions = [DefaultPermissions::ROOT_USER => true]; + if($this->server->isOp($this->username)){ + $rootPermissions[DefaultPermissions::ROOT_OPERATOR] = true; + } + $this->perm = new PermissibleBase($rootPermissions); $this->chunksPerTick = (int) $this->server->getConfigGroup()->getProperty("chunk-sending.per-tick", 4); $this->spawnThreshold = (int) (($this->server->getConfigGroup()->getProperty("chunk-sending.spawn-radius", 4) ** 2) * M_PI); $this->chunkSelector = new ChunkSelector();