mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-02-07 00:27:12 +01:00
Revert "Revert "Consolidate main command to a single class for both bukkit and bungee""
This reverts commit 52aff127ca.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
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;
|
||||
@@ -118,11 +119,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
|
||||
}
|
||||
|
||||
private void setupCommands() {
|
||||
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));
|
||||
}
|
||||
getCommand("placeholderapi").setExecutor(new PlaceholderAPICommands(this, (serverVersion != null && serverVersion.isSpigot())));
|
||||
}
|
||||
|
||||
private void setupOptions() {
|
||||
|
||||
Reference in New Issue
Block a user