Fix for ezModo not working and changed brackets in chat to be White again for now.

This commit is contained in:
nossr50 2010-12-30 04:32:41 -08:00
parent b2711e4328
commit 1388780143
2 changed files with 8 additions and 4 deletions

View File

@ -459,8 +459,8 @@ public class vMinecraftChat {
public static boolean quote(Player player, String message) public static boolean quote(Player player, String message)
{ {
//Format the name //Format the name
String playerName = player.getColor() + "<" + getName(player) String playerName = Colors.White + "<" + getName(player)
+ player.getColor() + "> "; + Colors.White + "> ";
if(vMinecraftSettings.getInstance().greentext()) { if(vMinecraftSettings.getInstance().greentext()) {
//Log the chat //Log the chat
log.log(Level.INFO, "<"+player.getName()+"> " + message); log.log(Level.INFO, "<"+player.getName()+"> " + message);
@ -504,8 +504,8 @@ public class vMinecraftChat {
public static boolean quakeColors(Player player, String message) public static boolean quakeColors(Player player, String message)
{ {
//Format the name //Format the name
String playerName = player.getColor() + "<" String playerName = Colors.White + "<"
+ getName(player) + player.getColor() +"> "; + getName(player) + Colors.White +"> ";
if(vMinecraftSettings.getInstance().quakeColors()) { if(vMinecraftSettings.getInstance().quakeColors()) {
String color = vMinecraftUsers.getProfile(player).getColor(); String color = vMinecraftUsers.getProfile(player).getColor();

View File

@ -86,6 +86,10 @@ public class vMinecraftListener extends PluginListener {
//Use: Checks for exploits and runs the commands //Use: Checks for exploits and runs the commands
//===================================================================== //=====================================================================
public boolean onHealthChange(Player player,int oldValue,int newValue){ 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 //Sets a player as dead
if (player.getHealth() < 1){ if (player.getHealth() < 1){
vMinecraftUsers.getProfile(player).isDead(true); vMinecraftUsers.getProfile(player).isDead(true);