mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
Update admin.lua
This commit is contained in:
committed by
GitHub
parent
a5c3b5ba7d
commit
eb73a2e092
@@ -19,7 +19,7 @@ commands.add_command('report', 'Reports a player', {'player','reason',true}, fun
|
||||
Admin.report(player,event.player_index,reason)
|
||||
end)
|
||||
|
||||
commands.add_command('give-warning', 'Gives a player a warnings', {'player','reason',true}, function(event,args)
|
||||
commands.add_command('give-warning', 'Gives a player a warning', {'player','reason',true}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
@@ -27,7 +27,7 @@ commands.add_command('give-warning', 'Gives a player a warnings', {'player','rea
|
||||
Admin.give_warning(player,event.player_index,reason)
|
||||
end)
|
||||
|
||||
commands.add_command('temp-ban', 'Temp Ban A Player', {'player','reason',true}, function(event,args)
|
||||
commands.add_command('temp-ban', 'Temp ban a player', {'player','reason',true}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
@@ -42,16 +42,16 @@ commands.add_command('clear-warings', 'Clears the warnings on a player', {'playe
|
||||
Admin.clear_warings(player,event.player_index)
|
||||
end)
|
||||
|
||||
commands.add_command('clear-reports', 'Clears the reports from a player', {'player'}, function(event,args)
|
||||
commands.add_command('clear-reports', 'Clears the reports on a player', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.clear_reports(player,event.player_index)
|
||||
end)
|
||||
|
||||
commands.add_command('clear-player', 'Clears reports and reports and removes temp-ban', {'player'}, function(event,args)
|
||||
commands.add_command('clear-player', 'Clears reports and warnings and removes temp-ban', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
local reason = args.reason
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.clear_player(player,event.player_index)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user