Fix wrong order loading

This commit is contained in:
libraryaddict 2020-02-21 14:24:07 +13:00
parent fd7d808a41
commit 287932d530
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 3 additions and 3 deletions

View File

@ -30,12 +30,12 @@ public class LibsDisguises extends JavaPlugin {
@Override
public void onLoad() {
instance = this;
if (Bukkit.getServer().getWorlds().isEmpty()) {
return;
}
instance = this;
WatcherSanitizer.init();
reloaded = true;

View File

@ -47,7 +47,7 @@ public class WatcherSanitizer {
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 " +
"Disguises can properly load them! They should add 'LibsDisguises' to the 'depend' section of" +
" their plugin.yml!");