Skip to content

Commit 81015a1

Browse files
committed
prevent user override language-version
1 parent 3b4390a commit 81015a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/maxgamer/quickshop/util/language/text/TextManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,14 @@ public void load() {
7373
if (localOverrideFile.exists()) {
7474
override.loadFromString(Util.readToString(localOverrideFile));
7575
for (String key : override.getKeys(true)) {
76+
if(key.equals("language-version"))
77+
continue;
7678
configuration.set(key, override.get(key));
7779
}
7880
}
7981
Util.debugLog("Locale: " + availableLanguage + " has been successfully loaded.");
82+
83+
8084
} catch (CrowdinOTA.OTAException e) {
8185
plugin.getLogger().warning("Couldn't update the translation for locale " + availableLanguage + " because it not configured, please report to QuickShop");
8286
} catch (IOException e) {

0 commit comments

Comments
 (0)