mioku-plugin-mc 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +32 -1
- package/utils/config-handler.ts +1 -1
package/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { definePlugin, type MiokiContext } from "mioki";
|
|
2
|
-
import type { ConfigService } from "
|
|
2
|
+
import type { ConfigService } from "mioku";
|
|
3
3
|
import { createConfigHandler } from "./utils/config-handler";
|
|
4
4
|
import { createServerManager } from "./utils/server-manager";
|
|
5
5
|
import { parseMcCommand } from "./utils/command-router";
|
package/package.json
CHANGED
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mioku-plugin-mc",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Minecraft与QQ群消息互通插件,支持服务器状态监控与RCON命令",
|
|
5
5
|
"main": "index.ts",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"keywords": [
|
|
7
8
|
"mioku"
|
|
8
9
|
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/mioku-lab/mioku-plugin-mc.git"
|
|
13
|
+
},
|
|
9
14
|
"mioku": {
|
|
10
15
|
"services": [
|
|
11
16
|
"config"
|
|
12
17
|
],
|
|
18
|
+
"accessHooks": [
|
|
19
|
+
{
|
|
20
|
+
"id": "/mc 状态",
|
|
21
|
+
"match": "/^\\/mc\\s*状态/"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "/mc 开启同步",
|
|
25
|
+
"match": "/^\\/mc\\s*开启同步/"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "/mc 关闭同步",
|
|
29
|
+
"match": "/^\\/mc\\s*关闭同步/"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "/mc 重连",
|
|
33
|
+
"match": "/^\\/mc\\s*重连/"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
13
36
|
"help": {
|
|
14
37
|
"title": "Minecraft",
|
|
15
38
|
"description": "Minecraft服务器与QQ群消息互通插件,支持服务器状态监控与RCON命令",
|
|
@@ -41,5 +64,13 @@
|
|
|
41
64
|
},
|
|
42
65
|
"dependencies": {
|
|
43
66
|
"@cikeyqi/queqiao-node-sdk": "^0.1.3"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"mioku": "^0.8.0",
|
|
70
|
+
"mioki": "^0.16.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"mioku": "workspace:*",
|
|
74
|
+
"mioki": "^0.16.0"
|
|
44
75
|
}
|
|
45
76
|
}
|
package/utils/config-handler.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfigService } from "
|
|
1
|
+
import type { ConfigService } from "mioku";
|
|
2
2
|
import { DEFAULT_CONFIG, normalizeConfig, type McConfig } from "../types";
|
|
3
3
|
|
|
4
4
|
export function createConfigHandler(configService: ConfigService | undefined) {
|