mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-07-03 19:23:44 +00:00
[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:
parent
7e799276c5
commit
f2a6bb39f0
|
@ -156,7 +156,7 @@ public class Settings implements IConf
|
|||
|
||||
if (colorName == null)
|
||||
return ChatColor.RED;
|
||||
if("none".equalsIgnoreCase(colorName))
|
||||
if("none".equalsIgnoreCase(colorName) || colorName.isEmpty())
|
||||
return ChatColor.WHITE;
|
||||
|
||||
try
|
||||
|
@ -485,4 +485,5 @@ public class Settings implements IConf
|
|||
{
|
||||
return config.getBoolean("permission-based-item-spawn", false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue