From 52d99409268aed99d5068008766dfb849e47411e Mon Sep 17 00:00:00 2001 From: filoghost Date: Wed, 31 Dec 2014 13:18:58 +0100 Subject: [PATCH] Increase version for release, expose command handler. --- .../holographicdisplays/HolographicDisplays.java | 13 ++++++++++--- HolographicDisplays/plugin.yml | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/HolographicDisplays/Plugin/com/gmail/filoghost/holographicdisplays/HolographicDisplays.java b/HolographicDisplays/Plugin/com/gmail/filoghost/holographicdisplays/HolographicDisplays.java index 1cd5543b..4a51616c 100644 --- a/HolographicDisplays/Plugin/com/gmail/filoghost/holographicdisplays/HolographicDisplays.java +++ b/HolographicDisplays/Plugin/com/gmail/filoghost/holographicdisplays/HolographicDisplays.java @@ -28,13 +28,16 @@ import com.gmail.filoghost.holographicdisplays.task.WorldPlayerCounterTask; import com.gmail.filoghost.holographicdisplays.util.VersionUtils; public class HolographicDisplays extends JavaPlugin { - + // The main instance of the plugin. private static HolographicDisplays instance; // The manager for net.minecraft.server access. private static NMSManager nmsManager; + // The command handler, just in case a plugin wants to register more commands. + private HologramsCommandHandler commandHandler; + // Since 1.8 we use armor stands instead of wither skulls. private static boolean is1_8; @@ -198,7 +201,7 @@ public class HolographicDisplays extends JavaPlugin { } } - getCommand("holograms").setExecutor(new HologramsCommandHandler()); + getCommand("holograms").setExecutor(commandHandler = new HologramsCommandHandler()); Bukkit.getPluginManager().registerEvents(new MainListener(nmsManager), this); try { @@ -221,7 +224,11 @@ public class HolographicDisplays extends JavaPlugin { public static NMSManager getNMSManager() { return nmsManager; } - + + public HologramsCommandHandler getCommandHandler() { + return commandHandler; + } + public static boolean is1_8() { return is1_8; } diff --git a/HolographicDisplays/plugin.yml b/HolographicDisplays/plugin.yml index fc880a8f..e3d3a24b 100644 --- a/HolographicDisplays/plugin.yml +++ b/HolographicDisplays/plugin.yml @@ -1,6 +1,6 @@ name: HolographicDisplays main: com.gmail.filoghost.holographicdisplays.HolographicDisplays -version: 2.1 +version: 2.1.1 softdepend: [Multiverse-Core, MultiWorld, My Worlds, My_Worlds, ProtocolLib]