Merge branch 'pr/31'

This commit is contained in:
Unknown
2018-04-14 16:00:40 +01:00
7 changed files with 22 additions and 22 deletions

View File

@@ -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
@@ -41,7 +41,7 @@ commands.add_command('unjail', 'Returns the players old rank', {'player',true},
Ranking.revert(player,event.player_index)
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
@@ -55,13 +55,13 @@ commands.add_command('clear-inv', 'Clears the player\'s invetory', {'player'}, f
Admin.move_inventory(player)
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)
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 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)
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
Admin.clear_reports(player,event.player_index)
@@ -71,4 +71,4 @@ commands.add_command('clear-all', 'Clears reports and reports and removes temp-b
local player = Game.get_player(args.player)
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
Admin.clear_player(player,event.player_index)
end)
end)