koishi-plugin-restart-projectzomboid 6.2.13 → 6.3.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/lib/index.d.ts CHANGED
@@ -6,10 +6,14 @@ export interface ServerInstance {
6
6
  targetDir: string;
7
7
  batPath: string;
8
8
  fileNames: string[];
9
+ /** 本服务器手动指定的群管理员 QQ 号 */
9
10
  allowedUsers: string[];
11
+ /** 管理员名单来源:空字符串表示手动输入,否则继承对应服务器的管理员名单 */
12
+ adminSource?: string;
10
13
  saveInterval: number;
11
14
  serverState?: 0 | 1 | 2;
12
- allowedPrivateUsers: string[];
15
+ /** @deprecated 旧版单服务器 CMD 权限,已改为全局 cmdAllowedUsers */
16
+ allowedPrivateUsers?: string[];
13
17
  bindPort: number;
14
18
  connectPort: number;
15
19
  bindGroupId: string;
@@ -24,6 +28,8 @@ export interface ServerInstance {
24
28
  export interface Config {
25
29
  ipNotifyGroups: string[];
26
30
  ipCheckInterval: number;
31
+ /** 全局 CMD 权限名单:名单内的用户可以对所有服务器发送控制台指令 */
32
+ cmdAllowedUsers: string[];
27
33
  servers: ServerInstance[];
28
34
  }
29
35
  export declare const Config: Schema<Config>;