UNPKG

koishi-plugin-mc-tools

Version:

我的世界(Minecraft/MC)工具。支持查询MCWiki/MCMod/CurseForge/Modrinth、服务器信息、最新版本和玩家皮肤;推送MC更新通知,运行命令等

75 lines (74 loc) 1.86 kB
import { Context, Schema } from 'koishi'; export declare const name = "mc-tools"; export declare const inject: { optional: string[]; }; export declare const usage = "\u6CE8\u610F\uFF1A\u4F7F\u7528 Docker \u90E8\u7F72\u4EA7\u751F\u7684\u95EE\u9898\u8BF7\u524D\u5F80\u63D2\u4EF6\u4E3B\u9875\u67E5\u770B\u89E3\u51B3\u65B9\u6848"; export type LangCode = keyof typeof MINECRAFT_LANGUAGES; declare const MINECRAFT_LANGUAGES: { zh: string; 'zh-hk': string; 'zh-tw': string; en: string; ja: string; ko: string; fr: string; de: string; es: string; it: string; pt: string; ru: string; pl: string; nl: string; tr: string; }; /** * 插件完整配置接口 */ export interface MTConfig { Timeout: number; totalLength: number; descLength: number; maxHeight?: number; waitUntil?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'; captureTimeout?: number; Language: LangCode; sectionLength: number; linkCount: number; cfApi: string; showImages: 'always' | 'noqq' | 'never'; default: string; showIP: boolean; showIcon: boolean; maxNumber: number; javaApis: string[]; bedrockApis: string[]; showSkull: boolean; verCheck: boolean; guilds: string[]; interval: number; release: boolean; snapshot: boolean; enableRcon: boolean; rconAddress: string; rconPassword: string; websocketMode: 'client' | 'server'; websocketAddress: string; websocketToken: string; enableWebSocket: boolean; name: string; connect: string; } /** * 插件配置模式 */ export declare const Config: Schema<MTConfig>; /** * 插件主函数 */ export declare function apply(ctx: Context, config: MTConfig): void; /** * 插件卸载函数 */ export declare function dispose(): void; export {};