Update comments

Former-commit-id: 1499ad60502d72cbba3925ccceae9de6d0e169d0
This commit is contained in:
Ghost_chu committed 2020-01-12 14:17:00 +08:00
1 parent cb002143cc
commit 6e6dc42515
2 files changed
+16 -11

No files matched your search

@@ -1170,6 +1170,13 @@ public class QuickShop extends JavaPlugin {
getConfig().set("maximum-digits-in-price",-1);
getConfig().set("config-version", 75);
}
if (selectedVersion == 75) {
getConfig().set("langutils-language", null);
if(getConfig().getString("game-language") == null){
getConfig().set("game-language", "default");
}
getConfig().set("config-version", 76);
}
saveConfig();
reloadConfig();
File file = new File(getDataFolder(), "example.config.yml");
+9 -11
View File
@@ -1,7 +1,7 @@
#This is example config, don't direct modify this file, all changes will revert when you reload the plugin.
#Do not touch if you not clear know about this
config-version: 75
config-version: 76
#Select the language you want to use, (e.g de), use only supported language codes from the list below.
#If you use a not exist/not support language, plugin will move to use en_US to keep everything working.
@@ -9,25 +9,23 @@ config-version: 75
#Available languages:
#en
#de
#en-US
#es-419
#fr
#ja
#ko
#pl
#ru
#zh-CN
#zh-TW
language: en
#Download LangUtils:
#For 1.13, you can download this: https://github.com/NyaaCat/LanguageUtils/releases/download/v2.1.17-mc1.13.1/LangUtils-v2.1.17-mc1.13.1.jar
#For 1.14, you can download this: https://cdn.discordapp.com/attachments/600693887715115019/610811190448226313/LangUtils-mc1.14-2.2.x.jar
#If links broken, you can join our discord server to get a copy.
# ==================
#If had LangUtils installed, quickshop can create the itemi18n, enchi18n and potioni18n by LangUtils.
#Available language you can found here -> https://github.com/NyaaCat/LanguageUtils/blob/1.14/src/main/java/com/meowj/langutils/lang/convert/EnumLang.java
#You need fill the low case at there
#E.g EN_US("en_us", new HashMap<>()), you need fill there with en_us
game-language: en_us
#After you setup this, quickshop will download items/blocks/enchs and potions translation from MOJANGAPI
#You can find supported language in your Minecraft Client Languages menu, fill this with the language Code.
#E.g [English (en-US)] The Language Code is en-US
game-language: default
#This enables developer mode, Do not touch this if you not know what it does
dev-mode: false