mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
Dry - Fixed all commands having a default '/' alias.
This commit is contained in:
@ -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()
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user