package musician101.itembank.commands.ibcommand;

import musician101.itembank.ItemBank;
import musician101.itembank.lib.Commands;
import musician101.itembank.lib.Messages;

import org.bukkit.command.CommandSender;

/**
 * The code used when the Help argument is used in the ItemBank command.
 * 
 * @author Musician101
 */
public class HelpCommand
{
	public static boolean execute(ItemBank plugin, CommandSender sender, String[] args)
	{
		if (args.length == 1)
			sender.sendMessage(Commands.HELP_LIST);
		else
		{
			String cmd = args[1].toLowerCase();
			if (cmd.equals(Commands.ACCOUNT_CMD))
				sender.sendMessage(Commands.ACCOUNT_HELP);
			else if (cmd.equals(Commands.DEPOSIT_CMD))
				sender.sendMessage(Commands.DEPOSIT_HELP);
			else if (cmd.equals(Commands.ALIAS_CMD))
				sender.sendMessage(Commands.ALIAS_HELP);
			else if (cmd.equals(Commands.PURGE_CMD))
				sender.sendMessage(Commands.PURGE_HELP);
			else if (cmd.equals(Commands.RELOAD_CMD))
				sender.sendMessage(Commands.RELOAD_HELP);
			else if (cmd.equals(Commands.WITHDRAW_CMD))
				sender.sendMessage(Commands.WITHDRAW_HELP);
			else
				sender.sendMessage(Messages.PREFIX + "Error: Command not recognized.");
		}
		return true;
	}
}

@@ -557,32 +557,42 @@
 %09%09if (cmd.equals
+IgnoreCase
 (Commands.ACCOUN
@@ -668,33 +668,141 @@
 d.equals
-(Commands.DEPOSIT
+IgnoreCase(Commands.ALIAS_CMD))%0A%09%09%09%09sender.sendMessage(Commands.ALIAS_HELP);%0A%09%09%09else if (cmd.equalsIgnoreCase(Commands.CONFIG
 _CMD))%0A%09
@@ -836,15 +836,14 @@
 nds.
-DEPOSIT
+CONFIG
 _HEL
@@ -860,32 +860,42 @@
 e if (cmd.equals
+IgnoreCase
 (Commands.ALIAS_
@@ -880,37 +880,39 @@
 reCase(Commands.
-ALIAS
+DEPOSIT
 _CMD))%0A%09%09%09%09sende
@@ -926,37 +926,39 @@
 essage(Commands.
-ALIAS
+DEPOSIT
 _HELP);%0A%09%09%09else 
@@ -963,32 +963,42 @@
 e if (cmd.equals
+IgnoreCase
 (Commands.PURGE_
@@ -1062,32 +1062,42 @@
 e if (cmd.equals
+IgnoreCase
 (Commands.RELOAD
@@ -1171,16 +1171,26 @@
 d.equals
+IgnoreCase
 (Command

Fix Help command not recognizing inputs that contained capitalized letters.