From de87f66f06a13864b5ae43794069e346712f0ac6 Mon Sep 17 00:00:00 2001 From: GeekFrog Date: Wed, 26 Jul 2017 18:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=96=87=E4=BB=B6=E9=87=8A?= =?UTF-8?q?=E6=94=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../gg/frog/mc/permissionstime/config/ConfigManager.java | 5 +---- src/resources/plugin.yml | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 73a8cb8..63afa98 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gg.frog.mc permissionstime - 0.2.0-SNAPSHOT + 0.2.1-SNAPSHOT jar PermissionsTime 支持跨服的权限限时插件 diff --git a/src/main/gg/frog/mc/permissionstime/config/ConfigManager.java b/src/main/gg/frog/mc/permissionstime/config/ConfigManager.java index 8db200d..e66047f 100644 --- a/src/main/gg/frog/mc/permissionstime/config/ConfigManager.java +++ b/src/main/gg/frog/mc/permissionstime/config/ConfigManager.java @@ -28,10 +28,7 @@ public class ConfigManager { public ConfigManager(PluginMain pm) { this.pm = pm; - File langFolder = new File(pm.getDataFolder(), "lang/"); - if (!langFolder.exists()) { - copyLangFilesFromJar(); - } + copyLangFilesFromJar(); // 添加到配置列表 cfgMap.put("plugin", new PluginCfg(pm)); cfgMap.put("lang", new LangCfg("lang/" + PluginCfg.LANG + ".yml", pm)); diff --git a/src/resources/plugin.yml b/src/resources/plugin.yml index aea4936..0a3375f 100644 --- a/src/resources/plugin.yml +++ b/src/resources/plugin.yml @@ -1,5 +1,5 @@ name: PermissionsTime -version: 0.2.0-SNAPSHOT +version: 0.2.1-SNAPSHOT main: gg.frog.mc.permissionstime.PluginMain author: GeekFrog softdepend: