Added command find

This commit is contained in:
Cooldude2606
2019-05-27 14:38:23 +01:00
parent ac755ba2ac
commit e1ec16ac77
5 changed files with 32 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ return {
'modules.commands.reports',
'modules.commands.spawn',
'modules.commands.warnings',
'modules.commands.find',
-- QoL Addons
'modules.addons.chat-popups',
'modules.addons.damage-popups',

View File

@@ -184,7 +184,7 @@ return {
['command/report'] = {
auth=function(player,action_player_name)
if not Roles.player_allowed(player,'command/give-warning') then
return auth_lower_role(player,action_player_name)
return not Roles.player_has_flag(action_player_name,'report-immune')
end
end,
reason_callback=report_player_callback,

View File

@@ -182,6 +182,7 @@ local default = Roles.new_role('Guest','')
'command/tag-clear',
'command/chelp',
'command/list-roles',
'command/find-on-map',
'command/report',
'gui/player-list',
}