mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 13:01:39 +09:00
Added A few Edits
This commit is contained in:
@@ -49,6 +49,7 @@ end
|
|||||||
|
|
||||||
function Admin.take_action(action,player,by_player,reason)
|
function Admin.take_action(action,player,by_player,reason)
|
||||||
if action == 'Ban' then Admin.ban(player,by_player,reason)
|
if action == 'Ban' then Admin.ban(player,by_player,reason)
|
||||||
|
elseif action == 'Temp Ban' and Admin.temp_ban then Admin.temp_ban(player,by_player,reason)
|
||||||
elseif action == 'Kick' then Admin.kick(player,by_player,reason)
|
elseif action == 'Kick' then Admin.kick(player,by_player,reason)
|
||||||
elseif action == 'Jail' then Admin.jail(player,by_player,reason)
|
elseif action == 'Jail' then Admin.jail(player,by_player,reason)
|
||||||
elseif action == 'Go To' then Admin.go_to(player,by_player)
|
elseif action == 'Go To' then Admin.go_to(player,by_player)
|
||||||
|
|||||||
@@ -9,10 +9,13 @@ Discord: https://discord.gg/r6dC2uK
|
|||||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||||
|
|
||||||
commands.add_command('report', 'Reports a player', {'player','reason',true}, function(event,args)
|
commands.add_command('report', 'Reports a player', {'player','reason',true}, function(event,args)
|
||||||
|
local _player = Game.get_player(event)
|
||||||
local player = Game.get_player(args.player)
|
local player = Game.get_player(args.player)
|
||||||
local reason = args.reason
|
local reason = args.reason
|
||||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
if Ranking.get_rank(player):allowed('no-report') or Admin.is_banned(player) then player_return({'reports.cant-report',args.player}) return commands.error end
|
if Ranking.get_rank(player):allowed('no-report') or Admin.is_banned(player) then player_return({'reports.cant-report',args.player}) return commands.error end
|
||||||
|
for _,report in pairs(global.addons.reports.reports) do if report[1] == _player.name then player_return({'reports.cant-report',args.player}) return commands.error end end
|
||||||
|
for _,report in pairs(global.addons.reports.varified) do if report[1] == _player.name then player_return({'reports.cant-report',args.player}) return commands.error end end
|
||||||
Admin.report(player,event.player_index,reason)
|
Admin.report(player,event.player_index,reason)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ local function _actions(player)
|
|||||||
'Bring',
|
'Bring',
|
||||||
'Jail',
|
'Jail',
|
||||||
'Kick',
|
'Kick',
|
||||||
|
'Temp Ban',
|
||||||
'Ban'
|
'Ban'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user