فهرست منبع

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

nossr50 15 سال پیش
والد
کامیت
1388780143
2فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 4 4
      vMinecraftChat.java
  2. 4 0
      vMinecraftListener.java

+ 4 - 4
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();

+ 4 - 0
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);