Added Essentials interface.

Moved nick customization commands from Essentials to TFM.
This commit is contained in:
StevenLawson
2013-09-24 10:13:38 -04:00
parent c5ddc60b97
commit 01807d1f0f
8 changed files with 253 additions and 8 deletions

View File

@ -27,7 +27,8 @@ public class TFM_Util
public static final List<String> DEVELOPERS = Arrays.asList("Madgeek1450", "DarthSalamon", "AcidicCyanide", "wild1145", "HeXeRei452");
private static final Random RANDOM = new Random();
public static String DATE_STORAGE_FORMAT = "EEE, d MMM yyyy HH:mm:ss Z";
public static final List<ChatColor> COLOR_POOL = Arrays.asList(
public static final Map<String, ChatColor> CHAT_COLOR_NAMES = new HashMap<String, ChatColor>();
public static final List<ChatColor> CHAT_COLOR_POOL = Arrays.asList(
ChatColor.DARK_BLUE,
ChatColor.DARK_GREEN,
ChatColor.DARK_AQUA,
@ -59,6 +60,11 @@ public class TFM_Util
{
}
}
for (ChatColor chatColor : CHAT_COLOR_POOL)
{
CHAT_COLOR_NAMES.put(chatColor.name().toLowerCase().replace("_", ""), chatColor);
}
}
private TFM_Util()
@ -804,7 +810,7 @@ public class TFM_Util
public static ChatColor randomChatColor()
{
return COLOR_POOL.get(RANDOM.nextInt(COLOR_POOL.size()));
return CHAT_COLOR_POOL.get(RANDOM.nextInt(CHAT_COLOR_POOL.size()));
}
public static String colorize(String string)