mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed server not being able to use role bassed commands
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user