Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Aug 13, 2018
2 parents 112b392 + 41f0fea commit 57eff58
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<br>
<br>

[***查看插件列表***](./markdown/plugin-list.md)

<a name="introduction"></a>
介绍 (v1.2.0):
--------
Expand Down Expand Up @@ -495,9 +497,32 @@ public class TestCommand implements EverywhereCommand
}
```

### 6. 插件配置:
### 6. 使用配置文件:

* 写一个默认配置文件`config.yml`放进`main/src/resources`里 (不然使用getConfig会返回null).
* 然后就可以用了
* 存储位置在`运行目录/plugins/插件名/config.yml`.

例子: 默认配置`config.yml`:

TODO!
```yml
TestBoolean1: true
TestList1:
- 871674895
- 666666666
TestList2: []
TestKey1:
TestKey2: TestValue
```

例子: 从程序里访问:

```java
getConfig().getBoolean("TestBoolean1"); // 返回TestBoolean1字段的值
getConfig().getStringList("TestList1"); // 返回TestList1字段的字符串数组
getConfig().getStringList("TestList2"); // 返回TestList2字段的字符串数组
getConfig().getString("TestKey1.TestKey2"); // 返回TestKey1下的TestKey2字段的值
```

### 7. 构建插件:

Expand Down
21 changes: 21 additions & 0 deletions markdown/plugin-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
##### [PicqBotX 插件管理器](https://github.com/HyDevelop/PicqBotX-PluginManager) > 插件列表

<br>

HyDEV插件:
--------

#### 基础插件:

* 权限管理: [PicqPermissionManager](https://github.com/HyDEV-Plugins/PicqPermissionManager)

<br>

第三方开发插件:
--------

* 还没有...

<br>

##### 如果写了新的开源插件欢迎联系我加到这个列表里 - QQ: 871674895 / [email protected]

0 comments on commit 57eff58

Please sign in to comment.