From 32723af8ac020af521de92986761d608ca6cc6f3 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 1 Jun 2019 11:02:06 +0100 Subject: [PATCH] Fixed server using role based commands again --- expcore/roles.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expcore/roles.lua b/expcore/roles.lua index 8737fbde..71944007 100644 --- a/expcore/roles.lua +++ b/expcore/roles.lua @@ -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}