Update kill.lua

This commit is contained in:
Jonathan Baumgardner
2018-03-12 22:37:56 -05:00
committed by GitHub
parent 0635ca7591
commit deeec00241

View File

@@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK
]] ]]
--Please Only Edit Below This Line----------------------------------------------------------- --Please Only Edit Below This Line-----------------------------------------------------------
commands.add_command('kill', 'Kills a player, must be either yourself (/kill self) or a person of a lower rank.', {'player'}, function(event,args) commands.add_command('kill', 'Kills a player. Must be either yourself (/kill self) or a person of a lower rank.', {'player'}, function(event,args)
local _player = Game.get_player(event) local _player = Game.get_player(event)
local player = Game.get_player(args.player) local player = Game.get_player(args.player)
if args.player ~= 'self' and not player then player_return({'commands.invalid-player',args.player}) return commands.error end if args.player ~= 'self' and not player then player_return({'commands.invalid-player',args.player}) return commands.error end