package musician101.emergencywhitelist.lib;

import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

/**
 * List of strings used throughout the plugin.
 * 
 * @author Musician101
 */
public class Constants
{
	/** Formatting */
	public static final String PREFIX = ChatColor.GOLD + "[EWL] ";
	
	/** Player messages. */
	public static final String[] HELP_TEXT = {ChatColor.WHITE + "---------" + ChatColor.GOLD + "EmergencyWhitelist" + ChatColor.WHITE + "---------",
		ChatColor.GOLD + "/ewl reload: " + ChatColor.WHITE + "Reload the plugin's config.",
		ChatColor.GOLD + "/ewl toggle: " + ChatColor.WHITE + "Toggles the server whitelist."};
	
	public static final String NO_PERMISSION = PREFIX + "You do not have permission for this command.";
	public static final String WHITELIST_ENABLED = "EmergencyWhitelist has been enabled";
	
	public static String getWhitelistAnnounce(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled. Kicking non-whitelist players";
		else
			isEnabled = "disabled";
		
		return PREFIX + "Whitelist " + isEnabled + ".";
	}
	
	public static String[] getVersionMessage(boolean enabled, String version)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "Enabled";
		else
			isEnabled = "Disabled";
		
		return new String[]{PREFIX + "Version " + version + " compiled with Bukkit 1.5.2-R1.0. Whitelist: " + isEnabled + ".", PREFIX + "Type /ewl help for a list of commands."};
	}
	
	/** Command names */
	public static final String EWL = "ewl";
	public static final String HELP = "help";
	public static final String RELOAD = "reload";
	public static final String TOGGLE = "toggle";
	
	/** Permissions */
	public static final String PERMISSION_EWL = "ewl.";
	public static final String PERMISSION_HELP = PERMISSION_EWL + "help";
	public static final String PERMISSION_RELOAD = PERMISSION_EWL + "reload";
	public static final String PERMISSION_TOGGLE = PERMISSION_EWL + "toggle";
	public static final String PERMISSION_WHITELIST = PERMISSION_EWL + "whitelist";
	
	/** Console Messages */
	public static String getDisconnectedPlayer(Player player)
	{
		return player.getName() + " attempted to connect.";
	}
	
	public static final String getToggleMessage(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Use /ewl toggle to " + isEnabled + " the whitelist.";
	}
	
	public static String getWhitelistEnabled(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Whitelist is currently " + isEnabled + ".";
	}
}

package musician101.emergencywhitelist.lib;

import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

/**
 * List of strings used throughout the plugin.
 * 
 * @author Musician101
 */
public class Constants
{
	/** Formatting */
	public static final String PREFIX = ChatColor.GOLD + "[EWL] ";
	
	/** Player messages. */
	public static final String[] HELP_TEXT = {ChatColor.WHITE + "---------" + ChatColor.GOLD + "EmergencyWhitelist" + ChatColor.WHITE + "---------",
		ChatColor.GOLD + "/ewl reload: " + ChatColor.WHITE + "Reload the plugin's config.",
		ChatColor.GOLD + "/ewl toggle: " + ChatColor.WHITE + "Toggles the server whitelist."};
	
	public static final String NO_PERMISSION = PREFIX + "You do not have permission for this command.";
	public static final String WHITELIST_ENABLED = "EmergencyWhitelist has been enabled";
	
	public static String getWhitelistAnnounce(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled. Kicking non-whitelist players";
		else
			isEnabled = "disabled";
		
		return PREFIX + "Whitelist " + isEnabled + ".";
	}
	
	public static String[] getVersionMessage(boolean enabled, String version)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "Enabled";
		else
			isEnabled = "Disabled";
		
		return new String[]{PREFIX + "Version " + version + " compiled with Bukkit 1.6.4-R1.0. Whitelist: " + isEnabled + ".", PREFIX + "Type /ewl help for a list of commands."};
	}
	
	/** Command names */
	public static final String EWL = "ewl";
	public static final String HELP = "help";
	public static final String RELOAD = "reload";
	public static final String TOGGLE = "toggle";
	
	/** Permissions */
	public static final String PERMISSION_EWL = "ewl.";
	public static final String PERMISSION_HELP = PERMISSION_EWL + "help";
	public static final String PERMISSION_RELOAD = PERMISSION_EWL + "reload";
	public static final String PERMISSION_TOGGLE = PERMISSION_EWL + "toggle";
	public static final String PERMISSION_WHITELIST = PERMISSION_EWL + "whitelist";
	
	/** Console Messages */
	public static String getDisconnectedPlayer(Player player)
	{
		return player.getName() + " attempted to connect.";
	}
	
	public static final String getToggleMessage(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Use /ewl toggle to " + isEnabled + " the whitelist.";
	}
	
	public static String getWhitelistEnabled(boolean enabled)
	{
		String isEnabled = "";
		if (enabled)
			isEnabled = "enabled";
		else
			isEnabled = "disabled";
		
		return "Whitelist is currently " + isEnabled + ".";
	}
}

Update getVersionMessage for future release.