mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Fixed Self Bug
This commit is contained in:
@@ -12,8 +12,7 @@ commands.add_command('kill', 'Kills a player, must be either yourself (/kill sel
|
||||
local _player = Game.get_player(event)
|
||||
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 _player.name == player.name or args.player == 'self' then
|
||||
if _player.connected then else player_return({'commands.offline-player'}) return commands.error end
|
||||
if args.player == 'self' or _player.name == player.name then
|
||||
if _player.character then _player.character.die() else player_return({'commands.dead-player'}) return commands.error end
|
||||
elseif Ranking.get_rank(player).power > Ranking.get_rank(_player).power then
|
||||
if player.connected then else player_return({'commands.offline-player'}) return commands.error end
|
||||
|
||||
Reference in New Issue
Block a user