From 6526e5ad7ce3bf2abaee83a2610da4813d5f68dc Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Wed, 6 Dec 2017 14:49:00 -0500 Subject: [PATCH] Correct data loading order. Bump version number --- pom.xml | 2 +- src/main/java/me/blackvein/quests/Quests.java | 6 ++---- src/main/java/me/blackvein/quests/util/Lang.java | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 4effe9e6d..6ad142e55 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ me.blackvein.quests quests - 3.1.1 + 3.1.2 quests https://github.com/FlyingPikachu/Quests/ jar diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index aa6c8c409..8b1ae29f1 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -161,15 +161,13 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener saveResource("events.yml", false); saveResource("data.yml", false); - // Load files + // Load stuff loadConfig(); loadModules(); + defaultLangFile(); loadData(); loadCommands(); - // Save/load lang - defaultLangFile(); - // Save config with any new options getConfig().options().copyDefaults(true); saveConfig(); diff --git a/src/main/java/me/blackvein/quests/util/Lang.java b/src/main/java/me/blackvein/quests/util/Lang.java index 9bc86ca4e..f482fba0e 100644 --- a/src/main/java/me/blackvein/quests/util/Lang.java +++ b/src/main/java/me/blackvein/quests/util/Lang.java @@ -992,7 +992,6 @@ public class Lang { } public void loadLang() { - System.out.println("lang reads = " + lang); File langFile = new File(plugin.getDataFolder(), File.separator + "lang" + File.separator + lang + ".yml"); boolean newLangs = false; if (langFile.exists()) {