From 487ec6095d4d87a79cf2ef925c0f9351990d981b Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 20 Feb 2020 12:47:23 +1300 Subject: [PATCH] Init ld --- src/main/java/me/libraryaddict/disguise/LibsDisguises.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java index 489ba622..0b581c15 100644 --- a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java @@ -30,6 +30,8 @@ public class LibsDisguises extends JavaPlugin { @Override public void onLoad() { + instance = this; + if (Bukkit.getServer().getWorlds().isEmpty()) { WatcherSanitizer.init(); return; @@ -48,8 +50,6 @@ public class LibsDisguises extends JavaPlugin { "reloads gracefully!"); } - instance = this; - if (!new File(getDataFolder(), "disguises.yml").exists()) { saveResource("disguises.yml", false); }