diff --git a/README.md b/README.md index 1b9cb6e5b..dedd06a11 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ # Mirai -一个以TIM QQ协议驱动的JAVA 全开源 QQ机器人服务端核心
+一个以TIM QQ协议驱动的JAVA(+Kotlin) 全开源 QQ机器人服务端核心
不受由于SMARTQQ关停的影响
-项目仍处于开发阶段
+项目处于快速开发阶段
+由于是学生, 无法每日更新
一切开发旨在学习, 请勿用于非法用途

-a JAVA powered open-sources project under GPL license
+A JAVA(+Kotlin) powered open-sources project under GPL license
It use protocols from TIM QQ, meaning it won't be affect by the close of smart QQ
The project is all for learning proposes and still in developing stage
@@ -15,10 +16,8 @@ The project is all for learning proposes and still in developing stage ## 使用方法 ### 要求 -``` php - Java 10 或以上 - ... -``` +- Java 11 或更高 +- Kotlin ### 插件开发 ``` php to be continue @@ -28,10 +27,8 @@ The project is all for learning proposes and still in developing stage ## Usage ### Requirements -``` php - Java 10 or higher - ... -``` +- Java 11 or higher +- Kotlin ### Plugin Developments ``` php to be continue diff --git a/mirai-core/src/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java b/mirai-core/src/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java index 0b08722cd..20b26be7f 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java +++ b/mirai-core/src/main/java/net/mamoe/mirai/utils/config/MiraiConfig.java @@ -33,6 +33,9 @@ public class MiraiConfig { } this.file = file; try { + if(file.exists()){ + file.createNewFile(); + } Config config = new Config(); config.setMultiSection(true); ini = new Ini(); @@ -78,6 +81,7 @@ public class MiraiConfig { } a.saveAsSection(ini.get(k)); }); + this.clearCache(); try { ini.store(file); } catch (IOException e) {