Skip to content

Commit

Permalink
Fixed !listplayers taking PERM_INCOGNITO into account (refs #62, #69)
Browse files Browse the repository at this point in the history
  • Loading branch information
timosmit committed Dec 31, 2018
1 parent 78139e6 commit b8688d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luamods/wolfadmin/commands/admin/listplayers.lua
Expand Up @@ -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
Expand Down

0 comments on commit b8688d7

Please sign in to comment.