Fixed !listplayers taking PERM_INCOGNITO into account (refs #62, #69)

This commit is contained in:
Timo Smit 2018-12-31 11:17:26 +01:00
parent 78139e6e0f
commit b8688d7fca

View file

@ -45,7 +45,7 @@ function commandListPlayers(clientId, command)
guidStub = players.getGUID(player):sub(-8)
end
local level = auth.getPlayerLevel(player)
local level = auth.isPlayerAllowed(player, auth.PERM_INCOGNITO) and 0 or auth.getPlayerLevel(player)
local levelName = auth.getLevelName(level)
local teamColor, teamCode