package com.ForgeEssentials.WorldControl.commands;

//Depreciated
import net.minecraft.command.ICommandSender;
import net.minecraft.tileentity.TileEntityCommandBlock;

import com.ForgeEssentials.core.commands.ForgeEssentialsCommandBase;

public abstract class WorldControlCommandBase extends ForgeEssentialsCommandBase
{

	protected boolean usesExtraSlash;

	/**
	 * 
	 * @param doubleSlashCommand
	 */
	WorldControlCommandBase(boolean doubleSlashCommand)
	{
		usesExtraSlash = doubleSlashCommand;
	}

	@Override
	public final String getCommandName()
	{
		if (usesExtraSlash)
		{
			return "/" + getName();
		}
		else
		{
			return getName();
		}
	}

	public abstract String getName();

	@Override
	public String getSyntaxConsole()
	{
		// almost never called.
		return "/" + getCommandName();
	}

	@Override
	public String getInfoConsole()
	{
		// almost never called.
		return "";
	}

	@Override
	public String getSyntaxCommandBlock(TileEntityCommandBlock block)
	{
		// almost never called.
		return "/" + getCommandName();
	}

	@Override
	public void processCommandBlock(TileEntityCommandBlock block, String[] args)
	{
		// most probably never used.
	}

	@Override
	public void processCommandConsole(ICommandSender sender, String[] args)
	{
		sender.sendChatToPlayer("You cannot use the \"" + getCommandName() + "\" command from the console");
	}

	@Override
	public boolean canConsoleUseCommand()
	{
		return false;
	}

	@Override
	public String getCommandPerm()
	{
		return "ForgeEssentials.WorldControl.commands." + getName();
	}
}

@@ -754,38 +754,32 @@
 called.%0A%09%09return
- %22/%22 +
  getCommandName(
@@ -985,30 +985,24 @@
 ed.%0A%09%09return
- %22/%22 +
  getCommandN

Update src/FE_SRC_COMMON/com/ForgeEssentials/WorldControl/commands/WorldControlCommandBase.java