mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Do not pass spigot boolean to command constructor
This commit is contained in:
parent
a5200fd5c1
commit
59539d591c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user