mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Bug Fixing Round 3
This commit is contained in:
@@ -6,8 +6,13 @@ require 'config.command_parse_general'
|
||||
|
||||
Commands.add_parse('role',function(input,player,reject)
|
||||
if not input then return end
|
||||
local roles = Roles.config.roles
|
||||
local role = auto_complete(roles,input,true)
|
||||
local roles = Roles.config.order
|
||||
local rev_roles = {}
|
||||
for i=#roles,1,-1 do
|
||||
table.insert(rev_roles,roles[i])
|
||||
end
|
||||
local role = auto_complete(rev_roles,input)
|
||||
role = Roles.get_role_by_name(role)
|
||||
if not role then
|
||||
return reject{'expcore-role.reject-role'}
|
||||
else
|
||||
|
||||
@@ -91,7 +91,7 @@ Roles.new_role('Trainee','TrMod')
|
||||
'command/goto',
|
||||
'command/temp-ban',
|
||||
'command/give-warning',
|
||||
'command/get-warning',
|
||||
'command/get-warnings',
|
||||
'command/get-reports',
|
||||
}
|
||||
|
||||
@@ -120,6 +120,8 @@ Roles.new_role('Donator','Don')
|
||||
:set_flag('is_spectator')
|
||||
:set_parent('Veteran')
|
||||
:allow{
|
||||
'command/jail',
|
||||
'command/unjail'
|
||||
}
|
||||
|
||||
Roles.new_role('Partner','Part')
|
||||
|
||||
Reference in New Issue
Block a user