mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01: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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user