mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Multiple fixes for role commands
- Fix server being 'Guest' for commands - Make autocomplete of arguments more intuitive - Fix usage text for commands
This commit is contained in:
@@ -329,7 +329,7 @@ local roles = Roles.get_player_roles(game.player)
|
||||
|
||||
]]
|
||||
function Roles.get_player_roles(player)
|
||||
if not player then return { Roles.config.roles[Roles.config.internal.root] } end
|
||||
if not player or player.index == 0 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 }
|
||||
|
||||
Reference in New Issue
Block a user