From 59539d591c8f2ecd1965faf170153d92fe0a4625 Mon Sep 17 00:00:00 2001 From: extendedclip Date: Sun, 8 Apr 2018 03:58:39 -0400 Subject: [PATCH] Do not pass spigot boolean to command constructor --- .../java/me/clip/placeholderapi/PlaceholderAPIPlugin.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java b/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java index 5c5cd1b..76e600b 100644 --- a/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java +++ b/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java @@ -79,7 +79,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin { public void onEnable() { config.loadDefConfig(); setupOptions(); - setupCommands(); + getCommand("placeholderapi").setExecutor(new PlaceholderAPICommands(this)); new PlaceholderListener(this); getLogger().info("Placeholder expansion registration initializing..."); expansionManager.registerAllExpansions(); @@ -118,10 +118,6 @@ public class PlaceholderAPIPlugin extends JavaPlugin { s.sendMessage(ChatColor.translateAlternateColorCodes('&', PlaceholderAPI.getRegisteredIdentifiers().size() + " &aplaceholder hooks successfully registered!")); } - private void setupCommands() { - getCommand("placeholderapi").setExecutor(new PlaceholderAPICommands(this, (serverVersion != null && serverVersion.isSpigot()))); - } - private void setupOptions() { booleanTrue = config.booleanTrue(); if (booleanTrue == null) {