From be0b16e80a2c45af96732d753760459445d62bc0 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 12 Apr 2023 02:36:35 +0200 Subject: [PATCH] Fixes the order of selected language VS fallback language --- pom.xml | 18 +++++++++--------- .../knarcraft/blacksmith/BlacksmithPlugin.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index d2fdcd3..dbc6712 100644 --- a/pom.xml +++ b/pom.xml @@ -32,8 +32,8 @@ https://repo.citizensnpcs.co/ - vault-repo - https://nexus.hc.to/content/repositories/pub_releases + jitpack.io + https://jitpack.io papermc @@ -69,25 +69,25 @@ org.spigotmc spigot-api - 1.19.3-R0.1-SNAPSHOT + 1.19.4-R0.1-SNAPSHOT provided - net.milkbowl.vault - Vault - 1.7.3 + com.github.MilkBowl + VaultAPI + 1.7 provided org.jetbrains annotations - 23.1.0 + 24.0.1 provided net.knarcraft knarlib - 1.0-SNAPSHOT + 1.1 compile @@ -99,7 +99,7 @@ com.github.seeseemelk MockBukkit-v1.19 - 2.144.3 + 2.145.0 test diff --git a/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java b/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java index feeb5f0..d9153f0 100644 --- a/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java +++ b/src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java @@ -122,7 +122,7 @@ public class BlacksmithPlugin extends JavaPlugin { translator = new Translator(); translator.registerMessageCategory(TranslatableTimeUnit.UNIT_SECOND); translator.registerMessageCategory(BlacksmithTranslatableMessage.ITEM_TYPE_ENCHANTMENT); - translator.loadLanguages(this.getDataFolder(), fileConfiguration.getString("language", "en"), "en"); + translator.loadLanguages(this.getDataFolder(), "en", fileConfiguration.getString("language", "en")); BlacksmithPlugin.stringFormatter = new StringFormatter(this.getDescription().getPrefix(), translator); //Set up Vault integration