mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 01:54:25 +02: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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user