diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index 363601f..37a838c 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -1,16 +1,22 @@ package gibstick.bukkit.DiscoSheep; +import java.util.ArrayList; import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.entity.Sheep; public final class DiscoSheep extends JavaPlugin { + private ArrayList SheepArray = new ArrayList<>(); + @Override public void onEnable(){ - getCommand("ds").setExecutor(new DiscoSheepCommandExecutor()); + getCommand("ds").setExecutor(new DiscoSheepCommandExecutor(this)); } @Override public void onDisable(){ - } + } + + } diff --git a/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java b/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java index b7219a7..f634d73 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheepCommandExecutor.java @@ -3,10 +3,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 { + private DiscoSheep plugin; + + public DiscoSheepCommandExecutor(DiscoSheep plugin) { + this.plugin = plugin; + } + @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {