From 138878014364bd48ccccee0003f2e66bbdbba898 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 30 Dec 2010 04:32:41 -0800 Subject: [PATCH] Fix for ezModo not working and changed brackets in chat to be White again for now. --- vMinecraftChat.java | 8 ++++---- vMinecraftListener.java | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/vMinecraftChat.java b/vMinecraftChat.java index c1d029a6f..fa7e9e32b 100644 --- a/vMinecraftChat.java +++ b/vMinecraftChat.java @@ -459,8 +459,8 @@ public class vMinecraftChat { public static boolean quote(Player player, String message) { //Format the name - String playerName = player.getColor() + "<" + getName(player) - + player.getColor() + "> "; + String playerName = Colors.White + "<" + getName(player) + + Colors.White + "> "; if(vMinecraftSettings.getInstance().greentext()) { //Log the chat log.log(Level.INFO, "<"+player.getName()+"> " + message); @@ -504,8 +504,8 @@ public class vMinecraftChat { public static boolean quakeColors(Player player, String message) { //Format the name - String playerName = player.getColor() + "<" - + getName(player) + player.getColor() +"> "; + String playerName = Colors.White + "<" + + getName(player) + Colors.White +"> "; if(vMinecraftSettings.getInstance().quakeColors()) { String color = vMinecraftUsers.getProfile(player).getColor(); diff --git a/vMinecraftListener.java b/vMinecraftListener.java index df3d51e9e..613fd8f74 100644 --- a/vMinecraftListener.java +++ b/vMinecraftListener.java @@ -86,6 +86,10 @@ public class vMinecraftListener extends PluginListener { //Use: Checks for exploits and runs the commands //===================================================================== public boolean onHealthChange(Player player,int oldValue,int newValue){ + //Invincibility for EzModo players + if(vMinecraftSettings.getInstance().isEzModo(player.getName())){ + return false; + } //Sets a player as dead if (player.getHealth() < 1){ vMinecraftUsers.getProfile(player).isDead(true);