Merge remote-tracking branch 'origin/master'

This commit is contained in:
Him188moe 2019-08-17 14:39:34 +08:00
commit c7584c2d68
2 changed files with 12 additions and 11 deletions

View File

@ -1,13 +1,14 @@
# Mirai # Mirai
一个以<b>TIM QQ协议</b>驱动的JAVA <b>全开源</b> QQ机器人服务端核心<br> 一个以<b>TIM QQ协议</b>驱动的JAVA(+Kotlin) <b>全开源</b> QQ机器人服务端核心<br>
不受由于<b>SMARTQQ</b>关停的影响<br> 不受由于<b>SMARTQQ</b>关停的影响<br>
项目仍处于开发阶段<br> 项目处于快速开发阶段<br>
由于是学生, 无法每日更新<br>
一切开发旨在学习, 请勿用于非法用途<br> 一切开发旨在学习, 请勿用于非法用途<br>
<br> <br>
a JAVA powered open-sources project under GPL license<br> A JAVA(+Kotlin) powered open-sources project under GPL license<br>
It use protocols from <i>TIM QQ</i>, meaning it won't be affect by the close of <i>smart QQ</i><br> It use protocols from <i>TIM QQ</i>, meaning it won't be affect by the close of <i>smart QQ</i><br>
The project is all for <b>learning proposes</b> and still in <b>developing stage</b><br> The project is all for <b>learning proposes</b> and still in <b>developing stage</b><br>
@ -15,10 +16,8 @@ The project is all for <b>learning proposes</b> and still in <b>developing stage
## 使用方法 ## 使用方法
### 要求 ### 要求
``` php - Java 11 或更高
Java 10 或以上 - Kotlin
...
```
### 插件开发 ### 插件开发
``` php ``` php
to be continue to be continue
@ -28,10 +27,8 @@ The project is all for <b>learning proposes</b> and still in <b>developing stage
## Usage ## Usage
### Requirements ### Requirements
``` php - Java 11 or higher
Java 10 or higher - Kotlin
...
```
### Plugin Developments ### Plugin Developments
``` php ``` php
to be continue to be continue

View File

@ -33,6 +33,9 @@ public class MiraiConfig {
} }
this.file = file; this.file = file;
try { try {
if(file.exists()){
file.createNewFile();
}
Config config = new Config(); Config config = new Config();
config.setMultiSection(true); config.setMultiSection(true);
ini = new Ini(); ini = new Ini();
@ -78,6 +81,7 @@ public class MiraiConfig {
} }
a.saveAsSection(ini.get(k)); a.saveAsSection(ini.get(k));
}); });
this.clearCache();
try { try {
ini.store(file); ini.store(file);
} catch (IOException e) { } catch (IOException e) {