Fix for ezmodo, removed ezHealth

This commit is contained in:
nossr50
2010-12-02 14:13:23 -08:00
parent 3a85abadfa
commit 83f1ed4a8f
4 changed files with 7 additions and 10 deletions

View File

@ -80,11 +80,9 @@ public class vMinecraftListener extends PluginListener {
//Use: Checks for exploits and runs the commands
//=====================================================================
public boolean onHealthChange(Player player,int oldValue,int newValue){
if (player.getHealth() != vMinecraftSettings.getInstance().ezModoHealth()
&& vMinecraftSettings.getInstance().isEzModo(player.getName())) {
player.setHealth(vMinecraftSettings.getInstance().ezModoHealth());
}
if (vMinecraftSettings.getInstance().isEzModo(player.getName())) {
return oldValue > newValue;
}
else if (vMinecraftSettings.getInstance().globalmessages() && player.getHealth() < 1) {
vMinecraftChat.gmsg(player, Colors.Gray + player.getName() + " " + vMinecraftSettings.randomDeathMsg());
}