Fixed server using role based commands again

This commit is contained in:
Cooldude2606
2019-06-01 11:02:06 +01:00
parent 8483de48ec
commit 32723af8ac

View File

@@ -320,7 +320,7 @@ end
-- @treturn table a table where the values are the roles which the player has
function Roles.get_player_roles(player)
player = Game.get_player_from_any(player)
if not player then return {Roles.config.internal.root} end
if not player then return {Roles.config.roles[Roles.config.internal.root]} end
local roles = Roles.config.players[player.name] or {}
local default = Roles.config.roles[Roles.config.internal.default]
local rtn = {default}