mirror of
https://github.com/geekfrog/PermissionsTime.git
synced 2024-11-21 23:08:48 +00:00
语言文件释放修改
This commit is contained in:
parent
6cdac1145d
commit
de87f66f06
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>gg.frog.mc</groupId>
|
<groupId>gg.frog.mc</groupId>
|
||||||
<artifactId>permissionstime</artifactId>
|
<artifactId>permissionstime</artifactId>
|
||||||
<version>0.2.0-SNAPSHOT</version>
|
<version>0.2.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>PermissionsTime</name>
|
<name>PermissionsTime</name>
|
||||||
<description>支持跨服的权限限时插件</description>
|
<description>支持跨服的权限限时插件</description>
|
||||||
|
@ -28,10 +28,7 @@ public class ConfigManager {
|
|||||||
|
|
||||||
public ConfigManager(PluginMain pm) {
|
public ConfigManager(PluginMain pm) {
|
||||||
this.pm = pm;
|
this.pm = pm;
|
||||||
File langFolder = new File(pm.getDataFolder(), "lang/");
|
|
||||||
if (!langFolder.exists()) {
|
|
||||||
copyLangFilesFromJar();
|
copyLangFilesFromJar();
|
||||||
}
|
|
||||||
// 添加到配置列表
|
// 添加到配置列表
|
||||||
cfgMap.put("plugin", new PluginCfg(pm));
|
cfgMap.put("plugin", new PluginCfg(pm));
|
||||||
cfgMap.put("lang", new LangCfg("lang/" + PluginCfg.LANG + ".yml", pm));
|
cfgMap.put("lang", new LangCfg("lang/" + PluginCfg.LANG + ".yml", pm));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: PermissionsTime
|
name: PermissionsTime
|
||||||
version: 0.2.0-SNAPSHOT
|
version: 0.2.1-SNAPSHOT
|
||||||
main: gg.frog.mc.permissionstime.PluginMain
|
main: gg.frog.mc.permissionstime.PluginMain
|
||||||
author: GeekFrog
|
author: GeekFrog
|
||||||
softdepend:
|
softdepend:
|
||||||
|
Loading…
Reference in New Issue
Block a user