Try check for preloaded classes

This commit is contained in:
libraryaddict
2020-02-21 13:53:08 +13:00
parent 434954a281
commit cf55470fad
4 changed files with 54 additions and 8 deletions

View File

@@ -30,13 +30,14 @@ public class LibsDisguises extends JavaPlugin {
@Override
public void onLoad() {
instance = this;
if (Bukkit.getServer().getWorlds().isEmpty()) {
WatcherSanitizer.init();
return;
}
instance = this;
WatcherSanitizer.init();
reloaded = true;
getLogger().severe("Lib's Disguises was reloaded! Please do not report any bugs! This plugin can't handle " +
"reloads gracefully!");