package musician101.emergencywhitelist.lib;

public class Commands
{
	public static final String EWL_CMD = "ewl";
	public static final String HELP_CMD = "help";
	public static final String RELOAD_CMD = "reload";
	public static final String TOGGLE_CMD = "toggle";
	
	public static final String EWL_PERM = "ewl.";
	public static final String HELP_PERM = EWL_PERM + "help";
	public static final String RELOAD_PERM = EWL_PERM + "reload";
	public static final String TOGGLE_PERM = EWL_PERM + "toggle";
	public static final String WHITELIST_PERM = EWL_PERM + "whitelist";
	
	public static final String NO_PERMISSION = StringFormatting.PREFIX + "You do not have permission for this command.";
	public static final String[] HELP_TEXT = {StringFormatting.WHITE + "---------" + StringFormatting.GOLD + "EmergencyWhitelist" + StringFormatting.WHITE + "---------",
		StringFormatting.GOLD + "/ewl reload: " + StringFormatting.WHITE + "Reload the plugin's config.",
		StringFormatting.GOLD + "/ewl toggle: " + StringFormatting.WHITE + "Toggles the server whitelist."};
	
	public static String[] getEWLText(boolean enabled, String version)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "Enabled";
		else
			isEnabled = "Disabled";
		
		return new String[]{StringFormatting.PREFIX + "Version " + version + " compiled with Bukkit 1.6.4-R2.0.",
				StringFormatting.PREFIX + "Whitelist: " + isEnabled + ".",
				StringFormatting.PREFIX + "Type /ewl help for a list of commands."};
	}
}

@@ -1325,16 +1325,16 @@
 t 1.
-6.4-R2.0
+7.2-R0.2
 .%22,%0A

Update getEWLText to display newest Bukkit version.