mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Debuged Command Parse for Roles
This commit is contained in:
@@ -643,7 +643,7 @@ function Commands.run_command(command_event)
|
||||
if Commands.internal_error(success,command_data.name,param_parsed) then
|
||||
return command_log(player,command_data,'Internal Error: Param Parse Fail',params,command_event.parameter,param_parsed)
|
||||
end
|
||||
if param_data.optional == true and param_parsed == nil then
|
||||
if param_data.optional == true and raw_params[index] == nil then
|
||||
-- if it is optional and param is nil then it is set to default
|
||||
param_parsed = param_data.default
|
||||
if type(param_parsed) == 'function' then
|
||||
|
||||
@@ -104,7 +104,7 @@ function Roles.get_player_roles(player)
|
||||
end
|
||||
|
||||
function Roles.get_player_highest_role(player)
|
||||
local roles = Roles.get_player_roels(player)
|
||||
local roles = Roles.get_player_roles(player)
|
||||
if not roles then return end
|
||||
local highest
|
||||
for _,role in pairs(roles) do
|
||||
|
||||
Reference in New Issue
Block a user