diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-10-19 10:33:10 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-10-19 10:33:10 +0100 |
commit | e0d3b9cfcfafe3e47a489017eb7f4bab711a4e0a (patch) | |
tree | e411f2c512d7dfccca0179f61c010f2596617880 /EssentialsXMPP | |
parent | 215e093c3f1a62c70f6a289e08911258aafb9420 (diff) | |
download | Essentials-e0d3b9cfcfafe3e47a489017eb7f4bab711a4e0a.tar Essentials-e0d3b9cfcfafe3e47a489017eb7f4bab711a4e0a.tar.gz Essentials-e0d3b9cfcfafe3e47a489017eb7f4bab711a4e0a.tar.lz Essentials-e0d3b9cfcfafe3e47a489017eb7f4bab711a4e0a.tar.xz Essentials-e0d3b9cfcfafe3e47a489017eb7f4bab711a4e0a.zip |
Fix command handlers
Diffstat (limited to 'EssentialsXMPP')
-rw-r--r-- | EssentialsXMPP/src/net/ess3/xmpp/EssentialsXMPP.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsXMPP/src/net/ess3/xmpp/EssentialsXMPP.java b/EssentialsXMPP/src/net/ess3/xmpp/EssentialsXMPP.java index 0aa6c9bed..b8e7545e6 100644 --- a/EssentialsXMPP/src/net/ess3/xmpp/EssentialsXMPP.java +++ b/EssentialsXMPP/src/net/ess3/xmpp/EssentialsXMPP.java @@ -14,6 +14,7 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.command.TabExecutor; public class EssentialsXMPP extends JavaPlugin implements IEssentialsXMPP @@ -23,7 +24,7 @@ public class EssentialsXMPP extends JavaPlugin implements IEssentialsXMPP private transient UserManager users; private transient XMPPManager xmpp; private transient IEssentials ess; - private transient ICommandHandler commandHandler; + private transient TabExecutor commandHandler; public static IEssentialsXMPP getInstance() { @@ -73,7 +74,7 @@ public class EssentialsXMPP extends JavaPlugin implements IEssentialsXMPP @Override public boolean onCommand(final CommandSender sender, final Command command, final String commandLabel, final String[] args) { - return commandHandler.handleCommand(sender, command, commandLabel, args); + return commandHandler.onCommand(sender, command, commandLabel, args); } @Override |