From 437aab400d42fa94199c313e4964e3c46c035b0c Mon Sep 17 00:00:00 2001 From: Him188moe Date: Sat, 17 Aug 2019 13:15:41 +0800 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b9cb6e5b..2b46f0c3a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ The project is all for learning proposes and still in developing stage ## Usage ### Requirements ``` php - Java 10 or higher + Java 11 or higher ... ``` ### Plugin Developments From e22f75bc232516b3b79657880e687a30eb0bba92 Mon Sep 17 00:00:00 2001 From: Him188moe Date: Sat, 17 Aug 2019 13:16:15 +0800 Subject: [PATCH 2/6] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b46f0c3a..8472c2bc8 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,8 @@ The project is all for learning proposes and still in developing stage ## Usage ### Requirements -``` php - Java 11 or higher - ... -``` +- Java 11 or higher +- Kotlin ### Plugin Developments ``` php to be continue From 0141810a394baa882d17af91821aefa7e394ec3d Mon Sep 17 00:00:00 2001 From: Him188moe Date: Sat, 17 Aug 2019 13:17:56 +0800 Subject: [PATCH 3/6] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8472c2bc8..7a983aaf1 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,8 @@ The project is all for learning proposes and still in developing stage ## 使用方法 ### 要求 -``` php - Java 10 或以上 - ... -``` +- Java 11 或更高 +- Kotlin ### 插件开发 ``` php to be continue From a239ac4e6dd324e21b1fd097cac42263165e0d76 Mon Sep 17 00:00:00 2001 From: Him188moe Date: Sat, 17 Aug 2019 13:19:18 +0800 Subject: [PATCH 4/6] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a983aaf1..dfc8c2d19 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ 一个以TIM QQ协议驱动的JAVA 全开源 QQ机器人服务端核心
不受由于SMARTQQ关停的影响
-项目仍处于开发阶段
+项目处于快速开发阶段
+由于是学生, 无法每日更新
一切开发旨在学习, 请勿用于非法用途

From dcade5494f9417a8606161b58771156210b4dfe8 Mon Sep 17 00:00:00 2001 From: Him188moe Date: Sat, 17 Aug 2019 13:56:03 +0800 Subject: [PATCH 5/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dfc8c2d19..dedd06a11 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Mirai -一个以TIM QQ协议驱动的JAVA 全开源 QQ机器人服务端核心
+一个以TIM QQ协议驱动的JAVA(+Kotlin) 全开源 QQ机器人服务端核心
不受由于SMARTQQ关停的影响
项目处于快速开发阶段
由于是学生, 无法每日更新
@@ -8,7 +8,7 @@
-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
From e30c8ea3c4a49957fdeeaf2c512212daf2112512 Mon Sep 17 00:00:00 2001 From: liujiahua123123 Date: Sat, 17 Aug 2019 14:30:58 +0800 Subject: [PATCH 6/6] UDP client --- .../main/java/net/mamoe/mirai/utils/config/MiraiConfig.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {