forked from circlecloud/MiaoChat
feat: 修复配置未重载的问题
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
6178bb8725
commit
db6a274918
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>pw.yumc</groupId>
|
<groupId>pw.yumc</groupId>
|
||||||
<artifactId>MiaoChat</artifactId>
|
<artifactId>MiaoChat</artifactId>
|
||||||
<version>1.1</version>
|
<version>1.2</version>
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}</finalName>
|
<finalName>${project.name}</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -56,6 +56,7 @@ public class ChatConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void reload() {
|
public void reload() {
|
||||||
|
format.reload();
|
||||||
formats.clear();
|
formats.clear();
|
||||||
for (final String name : format.getKeys(false)) {
|
for (final String name : format.getKeys(false)) {
|
||||||
formats.put(name, new ChatMessagePart(format.getConfigurationSection(name)));
|
formats.put(name, new ChatMessagePart(format.getConfigurationSection(name)));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#配置文件版本号 请勿修改
|
#配置文件版本号 请勿修改
|
||||||
Version: 1.1
|
Version: 1.2
|
||||||
|
|
||||||
#格式列表
|
#格式列表
|
||||||
Formats:
|
Formats:
|
||||||
|
Loading…
Reference in New Issue
Block a user