mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-05 17:07:06 +02:00
Do not pass spigot boolean to command constructor
This commit is contained in:
@@ -79,7 +79,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
config.loadDefConfig();
|
config.loadDefConfig();
|
||||||
setupOptions();
|
setupOptions();
|
||||||
setupCommands();
|
getCommand("placeholderapi").setExecutor(new PlaceholderAPICommands(this));
|
||||||
new PlaceholderListener(this);
|
new PlaceholderListener(this);
|
||||||
getLogger().info("Placeholder expansion registration initializing...");
|
getLogger().info("Placeholder expansion registration initializing...");
|
||||||
expansionManager.registerAllExpansions();
|
expansionManager.registerAllExpansions();
|
||||||
@@ -118,10 +118,6 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
|
|||||||
s.sendMessage(ChatColor.translateAlternateColorCodes('&', PlaceholderAPI.getRegisteredIdentifiers().size() + " &aplaceholder hooks successfully registered!"));
|
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() {
|
private void setupOptions() {
|
||||||
booleanTrue = config.booleanTrue();
|
booleanTrue = config.booleanTrue();
|
||||||
if (booleanTrue == null) {
|
if (booleanTrue == null) {
|
||||||
|
Reference in New Issue
Block a user