mirror of
https://github.com/Ne0nx3r0/BetterAlias.git
synced 2025-03-10 13:09:39 +01:00
Catching up to current version
This commit is contained in:
parent
b974339b52
commit
3781d66047
@ -16,7 +16,6 @@ public class BetterAlias extends JavaPlugin
|
|||||||
|
|
||||||
this.getServer().getPluginManager().registerEvents(new BetterAliasCommandListener(this), this);
|
this.getServer().getPluginManager().registerEvents(new BetterAliasCommandListener(this), this);
|
||||||
|
|
||||||
|
|
||||||
BetterAliasCommandExecutor betterAliasCommandExecutor = new BetterAliasCommandExecutor(this);
|
BetterAliasCommandExecutor betterAliasCommandExecutor = new BetterAliasCommandExecutor(this);
|
||||||
|
|
||||||
this.getCommand("bareload").setExecutor(betterAliasCommandExecutor);
|
this.getCommand("bareload").setExecutor(betterAliasCommandExecutor);
|
||||||
|
@ -20,7 +20,7 @@ public class BetterAliasCommandListener implements Listener
|
|||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
|
||||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent e)
|
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent e)
|
||||||
{
|
{
|
||||||
String sCommand = null;
|
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)
|
public void onConsoleCommand(ServerCommandEvent e)
|
||||||
{
|
{
|
||||||
Alias alias;
|
Alias alias;
|
||||||
|
Loading…
Reference in New Issue
Block a user