From eb73a2e0928184b5820d99ac111d24f38bc3f80f Mon Sep 17 00:00:00 2001 From: Jonathan Baumgardner Date: Mon, 12 Mar 2018 22:36:30 -0500 Subject: [PATCH] Update admin.lua --- Addons/Commands/admin.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Addons/Commands/admin.lua b/Addons/Commands/admin.lua index 90134d8c..637d425f 100644 --- a/Addons/Commands/admin.lua +++ b/Addons/Commands/admin.lua @@ -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) \ No newline at end of file +end)