From a58a5e47dbda2af4ebf951909492210cd53355ac Mon Sep 17 00:00:00 2001 From: Jonathan Baumgardner Date: Mon, 12 Mar 2018 22:41:06 -0500 Subject: [PATCH] Update admin.lua --- Addons/Commands/admin.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Addons/Commands/admin.lua b/Addons/Commands/admin.lua index 993cc6a9..d2fd7dca 100644 --- a/Addons/Commands/admin.lua +++ b/Addons/Commands/admin.lua @@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK ]] --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 reason = args.reason @@ -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 warning', {'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 warning', {'player','reas 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', 'Temporarily 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 @@ -35,21 +35,21 @@ commands.add_command('temp-ban', 'Temp ban a player', {'player','reason',true}, Admin.temp_ban(player,event.player_index,reason) end) -commands.add_command('clear-warings', 'Clears the warnings on a player', {'player'}, function(event,args) +commands.add_command('clear-warings', 'Clears the warnings 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_warings(player,event.player_index) end) -commands.add_command('clear-reports', 'Clears the reports on 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 warnings, 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