package musician101.itembank.commands.ibcommand;

import musician101.itembank.ItemBank;
import musician101.itembank.lib.Constants;

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(Constants.HELP_LIST);
		else
		{
			String cmd = args[1].toLowerCase();
			if (cmd == Constants.ACCOUNT_CMD)
				sender.sendMessage(Constants.ACCOUNT_HELP);
			else if (cmd == Constants.DEPOSIT_CMD)
				sender.sendMessage(Constants.DEPOSIT_HELP);
			else if (cmd == Constants.IA_CMD)
				sender.sendMessage(Constants.IA_HELP);
			else if (cmd == Constants.PURGE_CMD)
				sender.sendMessage(Constants.PURGE_HELP);
			else if (cmd == Constants.WITHDRAW_CMD)
				sender.sendMessage(Constants.WITHDRAW_HELP);
			else
				sender.sendMessage(Constants.PREFIX + "Error: Command not recognized.");
		}
		return true;
	}
}

@@ -514,28 +514,32 @@
 ;%0A%09%09%09if (cmd
- == 
+.equals(
 Constants.AC
@@ -544,24 +544,25 @@
 ACCOUNT_CMD)
+)
 %0A%09%09%09%09sender.
@@ -605,36 +605,40 @@
 %0A%09%09%09else if (cmd
- == 
+.equals(
 Constants.DEPOSI
@@ -639,24 +639,25 @@
 DEPOSIT_CMD)
+)
 %0A%09%09%09%09sender.
@@ -700,36 +700,40 @@
 %0A%09%09%09else if (cmd
- == 
+.equals(
 Constants.IA_CMD
@@ -729,24 +729,25 @@
 ants.IA_CMD)
+)
 %0A%09%09%09%09sender.
@@ -785,36 +785,40 @@
 %0A%09%09%09else if (cmd
- == 
+.equals(
 Constants.PURGE_
@@ -817,24 +817,25 @@
 s.PURGE_CMD)
+)
 %0A%09%09%09%09sender.
@@ -884,20 +884,24 @@
  if (cmd
- == 
+.equals(
 Constant
@@ -915,16 +915,17 @@
 RAW_CMD)
+)
 %0A%09%09%09%09sen

Fix Help not recognizing user input.