This commit is contained in:
libraryaddict 2020-02-20 12:47:23 +13:00
parent 7fcd90a338
commit 487ec6095d
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -30,6 +30,8 @@ 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()) {
WatcherSanitizer.init(); WatcherSanitizer.init();
return; return;
@ -48,8 +50,6 @@ public class LibsDisguises extends JavaPlugin {
"reloads gracefully!"); "reloads gracefully!");
} }
instance = this;
if (!new File(getDataFolder(), "disguises.yml").exists()) { if (!new File(getDataFolder(), "disguises.yml").exists()) {
saveResource("disguises.yml", false); saveResource("disguises.yml", false);
} }