Fix wrong order loading
This commit is contained in:
		@@ -30,12 +30,12 @@ public class LibsDisguises extends JavaPlugin {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void onLoad() {
 | 
					    public void onLoad() {
 | 
				
			||||||
 | 
					        instance = this;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (Bukkit.getServer().getWorlds().isEmpty()) {
 | 
					        if (Bukkit.getServer().getWorlds().isEmpty()) {
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        instance = this;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        WatcherSanitizer.init();
 | 
					        WatcherSanitizer.init();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        reloaded = true;
 | 
					        reloaded = true;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,7 +47,7 @@ public class WatcherSanitizer {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                PluginDescriptionFile desc = (PluginDescriptionFile) dF.get(loader);
 | 
					                PluginDescriptionFile desc = (PluginDescriptionFile) dF.get(loader);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                DisguiseUtilities.getLogger().severe(desc.getFullName() +
 | 
					                LibsDisguises.getInstance().getLogger().severe(desc.getFullName() +
 | 
				
			||||||
                        " has been a naughty plugin, they're declaring access to the disguise watchers before Lib's " +
 | 
					                        " has been a naughty plugin, they're declaring access to the disguise watchers before Lib's " +
 | 
				
			||||||
                        "Disguises can properly load them! They should add 'LibsDisguises' to the 'depend' section of" +
 | 
					                        "Disguises can properly load them! They should add 'LibsDisguises' to the 'depend' section of" +
 | 
				
			||||||
                        " their plugin.yml!");
 | 
					                        " their plugin.yml!");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user