diff --git a/src/main/java/cc/carm/plugin/userprefix/manager/ConfigManager.java b/src/main/java/cc/carm/plugin/userprefix/manager/ConfigManager.java index 8c32435..7cbce94 100644 --- a/src/main/java/cc/carm/plugin/userprefix/manager/ConfigManager.java +++ b/src/main/java/cc/carm/plugin/userprefix/manager/ConfigManager.java @@ -26,7 +26,7 @@ protected void firstInitialize(File dataFolder) { File configFile = new File(dataFolder, "config.yml"); if (!configFile.exists()) { try { - JarResourceUtils.copyFolderFromJar("en_US", dataFolder, JarResourceUtils.CopyOption.COPY_IF_NOT_EXIST); + JarResourceUtils.copyFolderFromJar("i18n", dataFolder, JarResourceUtils.CopyOption.COPY_IF_NOT_EXIST); JarResourceUtils.copyFolderFromJar("prefixes", dataFolder, JarResourceUtils.CopyOption.COPY_IF_NOT_EXIST); } catch (IOException e) { e.printStackTrace(); diff --git a/src/main/resources/en_US/example-prefix.yml b/src/main/resources/i18n/en_US/example-prefix.yml similarity index 94% rename from src/main/resources/en_US/example-prefix.yml rename to src/main/resources/i18n/en_US/example-prefix.yml index 942f5f8..747eccd 100644 --- a/src/main/resources/en_US/example-prefix.yml +++ b/src/main/resources/i18n/en_US/example-prefix.yml @@ -27,6 +27,8 @@ permission: "yc.vip" actions: - "[CONSOLE] say %player_name% selected PRO !" +# Display item configuration +# More details please see https://github.com/CryptoMorin/XSeries/wiki/XItemStack item: # itemHasPermission [Necessary] # This Item will be displayed when player has permission diff --git a/src/main/resources/ejemplo-prefijo.yml b/src/main/resources/i18n/es_ES/ejemplo-prefijo.yml similarity index 100% rename from src/main/resources/ejemplo-prefijo.yml rename to src/main/resources/i18n/es_ES/ejemplo-prefijo.yml diff --git a/src/main/resources/prefixes/example-prefix.yml b/src/main/resources/prefixes/example-prefix.yml index d6e2ce5..8359dc2 100644 --- a/src/main/resources/prefixes/example-prefix.yml +++ b/src/main/resources/prefixes/example-prefix.yml @@ -30,6 +30,7 @@ actions: - "[CONSOLE] say %player_name% 选择了 Pro会员前缀 !" # 该前缀的GUI物品配置 +# 物品配置方式详见 https://github.com/CryptoMorin/XSeries/wiki/XItemStack item: # 有权限时显示的物品 [必须]