diff --git a/src/main/java/org/strassburger/serverLinksZ/util/LanguageManager.java b/src/main/java/org/strassburger/serverLinksZ/util/LanguageManager.java index 5a7b4d6..53d1c8f 100644 --- a/src/main/java/org/strassburger/serverLinksZ/util/LanguageManager.java +++ b/src/main/java/org/strassburger/serverLinksZ/util/LanguageManager.java @@ -11,7 +11,7 @@ public class LanguageManager { private final JavaPlugin plugin = ServerLinksZ.getInstance(); - public static final List defaultLangs = List.of("en-US", "de-DE"); + public static final List defaultLangs = List.of("en-US", "de-DE", "zh-CN"); private HashMap translationMap; private FileConfiguration langConfig; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 5fe04d8..3899216 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -18,7 +18,7 @@ # Set the language to any code found in the "lang" folder (don't add the .yml extension) # You can add your own language files. Use https://github.com/KartoffelChipss/ServerLinksZ/tree/main/src/main/resources/lang/en-US.yml as a template -# | en-US | de-DE | +# | en-US | de-DE | zh-CN | lang: "en-US" # Wether to show hints when using commands @@ -28,4 +28,4 @@ hints: true linkCommand: true -# [!!!] You can configure the links in the links.yml file! \ No newline at end of file +# [!!!] You can configure the links in the links.yml file! diff --git a/src/main/resources/lang/zh-CN.yml b/src/main/resources/lang/zh-CN.yml new file mode 100644 index 0000000..cac4bbe --- /dev/null +++ b/src/main/resources/lang/zh-CN.yml @@ -0,0 +1,14 @@ +prefix: "&7[&lServerLinksZ&7]" +help: "\n &8> <#00BFFF>ServerLinksZ\n\n&7您可以使用 /sl 命令添加或移除服务器链接, 但建议对links.yml文件进行编辑 ,文件位于 /plugins/ServerLinksZ/links.yml 下.\n\n <#00BFFF>Support Discord\n" +linkCommand: "&7-> %name% &r&7<-" +rejoinHint: "<#E9D502>⚠ 为了更新服务器链接列表,请您重新进入服务器" +moreConfigOptionsHint: "<#E9D502>⚠ 有关更多配置选项,请参阅config.yml文件!" +invalidUrlError: "&c无效的URL!" +urlProtocolError: "&cURL应该以 'http://' 或 'https://' 开头!" +versionMsg: "&7你现在正使用 <#00BFFF>%version%&7版本" +noPermissionError: "&c你没有权限使用这个!" +addLinkMsg: "&7成功添加id为<#00BFFF>%id%&7服务器链接!" +removeLinkMsg: "&7成功移除id为<#00BFFF>%id%&7服务器链接!" +linkCommandDisabled: "&clink命令是禁用状态!" +linkCcommandNotAllowed: "&c不允许您通过命令访问此链接!" +linkNotFound: "&c未发现id为%id%&c 的链接!" \ No newline at end of file