From a536bb403819508f90ebbce55068a09bc454af26 Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Sun, 30 Jun 2013 10:00:52 -0400 Subject: [PATCH] CommandExector class to handle commands --- src/gibstick/bukkit/DiscoSheep/DiscoSheep.java | 6 +----- .../DiscoSheep/DiscoSheepCommandExecutor.java | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 src/gibstick/bukkit/DiscoSheep/DiscoSheepCommandExecutor.java diff --git a/src/gibstick/bukkit/DiscoSheep/DiscoSheep.java b/src/gibstick/bukkit/DiscoSheep/DiscoSheep.java index a8171ca..363601f 100644 --- a/src/gibstick/bukkit/DiscoSheep/DiscoSheep.java +++ b/src/gibstick/bukkit/DiscoSheep/DiscoSheep.java @@ -2,15 +2,11 @@ package gibstick.bukkit.DiscoSheep; import org.bukkit.plugin.java.JavaPlugin; -/** - * - * @author Charlie - */ public final class DiscoSheep extends JavaPlugin { @Override public void onEnable(){ - + getCommand("ds").setExecutor(new DiscoSheepCommandExecutor()); } @Override diff --git a/src/gibstick/bukkit/DiscoSheep/DiscoSheepCommandExecutor.java b/src/gibstick/bukkit/DiscoSheep/DiscoSheepCommandExecutor.java new file mode 100644 index 0000000..b7219a7 --- /dev/null +++ b/src/gibstick/bukkit/DiscoSheep/DiscoSheepCommandExecutor.java @@ -0,0 +1,16 @@ +package gibstick.bukkit.DiscoSheep; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandSender; +import org.bukkit.command.CommandExecutor; +import org.bukkit.entity.Sheep; + +public class DiscoSheepCommandExecutor implements CommandExecutor { + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + + return true; + } + +}