Fixed server not being able to use role bassed commands

This commit is contained in:
Cooldude2606
2019-05-29 19:58:06 +01:00
parent 420dd4789d
commit f22f62db47

View File

@@ -321,7 +321,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 end
if not player then return {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}