Revert "Consolidate main command to a single class for both bukkit and bungee"

This reverts commit 4e9af1cc9e.
This commit is contained in:
extendedclip
2018-03-23 14:17:28 -04:00
parent 4e9af1cc9e
commit 52aff127ca
3 changed files with 256 additions and 12 deletions

View File

@@ -20,7 +20,6 @@
*/
package me.clip.placeholderapi;
import me.clip.placeholderapi.commands.PlaceholderAPICommands;
import me.clip.placeholderapi.configuration.PlaceholderAPIConfig;
import me.clip.placeholderapi.expansion.ExpansionManager;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
@@ -119,7 +118,11 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
}
private void setupCommands() {
getCommand("placeholderapi").setExecutor(new PlaceholderAPICommands(this, (serverVersion != null && serverVersion.isSpigot())));
if (serverVersion != null && serverVersion.isSpigot()) {
getCommand("placeholderapi").setExecutor(new me.clip.placeholderapi.commands.spigot.PlaceholderAPICommands(this));
} else {
getCommand("placeholderapi").setExecutor(new me.clip.placeholderapi.commands.bukkit.PlaceholderAPICommands(this));
}
}
private void setupOptions() {