Catching up to current version

This commit is contained in:
Ne0nx3r0 2013-07-18 13:14:58 -05:00
parent b974339b52
commit 3781d66047
2 changed files with 115 additions and 116 deletions

View File

@ -16,7 +16,6 @@ public class BetterAlias extends JavaPlugin
this.getServer().getPluginManager().registerEvents(new BetterAliasCommandListener(this), this);
BetterAliasCommandExecutor betterAliasCommandExecutor = new BetterAliasCommandExecutor(this);
this.getCommand("bareload").setExecutor(betterAliasCommandExecutor);

View File

@ -20,7 +20,7 @@ public class BetterAliasCommandListener implements Listener
this.plugin = plugin;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent e)
{
String sCommand = null;
@ -62,7 +62,7 @@ public class BetterAliasCommandListener implements Listener
}
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onConsoleCommand(ServerCommandEvent e)
{
Alias alias;