@@ -0,0 +1,1195 @@
+package com.elmakers.mine.bukkit.utility;%0A%0Aimport java.util.Collection;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.configuration.ConfigurationSection;%0A%0A%0Apublic class Messages %7B%0A%09public static Map%3CString, String%3E messageMap = new HashMap%3CString, String%3E();%0A%09%0A%09public static void load(ConfigurationSection messages) %7B%0A%09%09Collection%3CString%3E keys = messages.getKeys(true);%0A%09%09for (String key : keys) %7B%0A%09%09%09messageMap.put(key, messages.getString(key));%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void reset() %7B%0A%09%09messageMap.clear();%0A%09%7D%0A%09%0A%09public static String get(String key, String defaultValue) %7B%0A%09%09return messageMap.containsKey(key) ? ChatColor.translateAlternateColorCodes('&', messageMap.get(key)) : defaultValue;%0A%09%7D%0A%09%0A%09public static String get(String key) %7B%0A%09%09return get(key, key);%0A%09%7D%0A%09%0A%09public static String getParameterized(String key, String paramName, String paramValue) %7B%0A%09%09return get(key, key).replace(paramName, paramValue);%0A%09%7D%0A%09%0A%09public static String getParameterized(String key, String paramName1, String paramValue1, String paramName2, String paramValue2) %7B%0A%09%09return get(key, key).replace(paramName1, paramValue1).replace(paramName2, paramValue2);%0A%09%7D%0A%7D%0A

Add Messages, a localization utility.