Dry - Fixed all commands having a default '/' alias.

This commit is contained in:
Jerom van der Sar
2013-07-13 12:49:53 +02:00
parent 37e78dceec
commit 53614d174e
4 changed files with 7 additions and 13 deletions

View File

@ -139,7 +139,7 @@ public class TFM_CommandLoader
this.blockHostConsole = blockHostConsole;
this.description = description;
this.usage = usage;
this.aliases = Arrays.asList(aliases.split(","));
this.aliases = ("".equals(aliases) ? new ArrayList<String>() : Arrays.asList(aliases.split(",")));
}
public List<String> getAliases()

View File

@ -126,7 +126,7 @@ public class TotalFreedomMod extends JavaPlugin
public void onDisable()
{
server.getScheduler().cancelTasks(this);
TFM_Log.info("Plugin Disabled");
TFM_Log.info("Plugin disabled");
}
@Override
@ -153,11 +153,6 @@ public class TotalFreedomMod extends JavaPlugin
commandLabel,
StringUtils.join(args, " ")), true);
}
if ("".equals(commandLabel))
{
return false;
}
TFM_Command dispatcher;
try
@ -189,7 +184,6 @@ public class TotalFreedomMod extends JavaPlugin
TFM_Log.severe("Command Error: " + commandLabel + "\n" + ExceptionUtils.getStackTrace(ex));
}
dispatcher = null;
}
catch (Throwable ex)
{