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 /EssentialsExtra/src | |
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 'EssentialsExtra/src')
-rw-r--r-- | EssentialsExtra/src/net/ess3/extra/EssentialsExtra.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsExtra/src/net/ess3/extra/EssentialsExtra.java b/EssentialsExtra/src/net/ess3/extra/EssentialsExtra.java index 01a58776d..de2c5fedd 100644 --- a/EssentialsExtra/src/net/ess3/extra/EssentialsExtra.java +++ b/EssentialsExtra/src/net/ess3/extra/EssentialsExtra.java @@ -15,6 +15,7 @@ import java.util.logging.Level; import net.ess3.api.ICommandHandler; import net.ess3.api.IEssentials; import net.ess3.bukkit.BukkitPlugin; +import org.bukkit.command.TabExecutor; import net.ess3.commands.EssentialsCommandHandler; import org.bukkit.Bukkit; import org.bukkit.command.Command; @@ -80,7 +81,7 @@ public class EssentialsExtra extends JavaPlugin } ClassLoader loader = new URLClassLoader(urls); - final ICommandHandler handler = new EssentialsCommandHandler(loader, "Command", "essentials.", ess); + final TabExecutor handler = new EssentialsCommandHandler(loader, "Command", "essentials.", ess); for (File file : commandDir.listFiles()) { String fileName = file.getName(); @@ -99,7 +100,7 @@ public class EssentialsExtra extends JavaPlugin @Override public boolean execute(CommandSender cs, String label, String[] args) { - return handler.handleCommand(cs, this, label, args); + return handler.onCommand(cs, this, label, args); } }); getLogger().info("Loaded command " + commandName); |