[trunk] if ops name is empty handling

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1367 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo 2011-05-08 00:06:28 +00:00
parent 7e799276c5
commit f2a6bb39f0

View file

@ -156,7 +156,7 @@ public class Settings implements IConf
if (colorName == null) if (colorName == null)
return ChatColor.RED; return ChatColor.RED;
if("none".equalsIgnoreCase(colorName)) if("none".equalsIgnoreCase(colorName) || colorName.isEmpty())
return ChatColor.WHITE; return ChatColor.WHITE;
try try
@ -485,4 +485,5 @@ public class Settings implements IConf
{ {
return config.getBoolean("permission-based-item-spawn", false); return config.getBoolean("permission-based-item-spawn", false);
} }
} }