mirror of
				https://github.com/PlaceholderAPI/PlaceholderAPI
				synced 2025-11-03 19:12:29 +01: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() {
 | 
			
		||||
		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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user