Do not pass spigot boolean to command constructor

This commit is contained in:
extendedclip 2018-04-08 03:58:39 -04:00
parent a5200fd5c1
commit 59539d591c

View File

@ -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) {