package musician101.emergencywhitelist.commands;

import musician101.emergencywhitelist.EmergencyWhitelist;
import musician101.emergencywhitelist.lib.Constants;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.event.EventHandler;

/**
 * The code used to run when any command in the plugin is executed.
 * 
 * @author Musician101
 */
public class EWLCommandExecutor implements CommandExecutor
{
	EmergencyWhitelist plugin;
	/**
	 * @param plugin References the plugin's main class.
	 */
	public EWLCommandExecutor(EmergencyWhitelist plugin)
	{
		this.plugin = plugin;
	}
	
	/**
	 * @param sender Who sent the command.
	 * @param command Which command was executed
	 * @param label Alias of the command
	 * @param args Command parameters
	 * @return True if the command was successfully executed
	 */
	@EventHandler
	public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
	{
		boolean enabled = plugin.getConfig().getBoolean("enabled");
		if (command.getName().equalsIgnoreCase(Constants.EWL))
		{
			if (args.length == 0)
			{
				sender.sendMessage(Constants.getVersionMessage(enabled, plugin.getDescription().getVersion()));
				sender.sendMessage(ChatColor.GOLD + "[EmergencyWhitelist] Type /ewl help for a list of commands.");
			}
			else if (args.length > 0)
			{
				if (args[0].equalsIgnoreCase(Constants.HELP))
				{
					new HelpCommand(plugin, sender);
				}
				else if (args[0].equalsIgnoreCase(Constants.TOGGLE))
				{
					new ToggleCommand(plugin, sender, enabled);
				}
			}
			return true;
		}
		return false;
	}
}

@@ -306,46 +306,8 @@
 der;
-%0Aimport org.bukkit.event.EventHandler;
 %0A%0A/*
@@ -879,20 +879,16 @@
 /%0A%09@
-EventHandler
+Override
 %0A%09pu

Change @EventHandler annotation to @Overide.