diff --git a/resource/plugin.yml b/resource/plugin.yml index 36f5aea..39a1def 100644 --- a/resource/plugin.yml +++ b/resource/plugin.yml @@ -4,7 +4,7 @@ name: CommandPanels author: RockyHawk api-version: '1.13' description: Fully Custom GUIs. Make your Server Professional. -softdepend: [Essentials, PlaceholderAPI, Vault, HeadDatabase, TokenManager, VotingPlugin, MMOItems, ChestSort] +softdepend: [Essentials, PlaceholderAPI, Vault, HeadDatabase, TokenManager, VotingPlugin, MMOItems, ChestSort, floodgate] commands: commandpanel: description: Open a command panel. diff --git a/src/me/rockyhawk/commandpanels/CommandPanels.java b/src/me/rockyhawk/commandpanels/CommandPanels.java index a1a1f71..63674bd 100644 --- a/src/me/rockyhawk/commandpanels/CommandPanels.java +++ b/src/me/rockyhawk/commandpanels/CommandPanels.java @@ -184,7 +184,10 @@ public class CommandPanels extends JavaPlugin{ this.getServer().getPluginManager().registerEvents(new ItemFallManager(this), this); this.getServer().getPluginManager().registerEvents(new OpenOnJoin(this), this); this.getServer().getPluginManager().registerEvents(new OutsideClickEvent(this), this); - this.getServer().getPluginManager().registerEvents(new OpenFloodgateGUI(this), this); + + if (this.getServer().getPluginManager().isPluginEnabled("floodgate")) { + this.getServer().getPluginManager().registerEvents(new OpenFloodgateGUI(this), this); + } //load in the updater if requested if (Objects.requireNonNull(config.getString("updater.update-checks")).equalsIgnoreCase("true")) {