mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
I forget exactly >.>
This commit is contained in:
parent
20f62d90c9
commit
0ca264580c
@ -366,19 +366,21 @@ public class vminecraftCommands{
|
|||||||
Player playerTarget = etc.getServer().matchPlayer(args[0]);
|
Player playerTarget = etc.getServer().matchPlayer(args[0]);
|
||||||
//If the player doesn't exist don't run
|
//If the player doesn't exist don't run
|
||||||
if(playerTarget == null)
|
if(playerTarget == null)
|
||||||
return EXIT_SUCCESS;
|
return EXIT_FAIL;
|
||||||
//If the player isn't invulnerable kill them
|
//If the player isn't invulnerable kill them
|
||||||
if (!vminecraftSettings.getInstance().isEzModo(playerTarget.getName())) {
|
if (!vminecraftSettings.getInstance().isEzModo(playerTarget.getName())) {
|
||||||
playerTarget.setHealth(0);
|
playerTarget.setHealth(0);
|
||||||
vminecraftChat.gmsg(player.getColor() + player.getName() + Colors.LightBlue + " has slain " + playerTarget.getColor() + playerTarget.getName());
|
vminecraftChat.gmsg(vminecraftChat.nameColor(player)
|
||||||
|
+ Colors.LightBlue + " has slain "
|
||||||
|
+ vminecraftChat.nameColor(playerTarget));
|
||||||
//Otherwise output error to the user
|
//Otherwise output error to the user
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(Colors.Rose + "That player is currently in ezmodo! Hahahaha");
|
player.sendMessage(Colors.Rose + "That player is currently in ezmodo! Hahahaha");
|
||||||
}
|
}
|
||||||
return EXIT_FAIL;
|
|
||||||
}
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
return EXIT_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
//Function: invuln (/ezmodo)
|
//Function: invuln (/ezmodo)
|
||||||
|
Loading…
Reference in New Issue
Block a user