From e4a87095ceeb284d48c8bee5424ba47eb8225293 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Mon, 24 Feb 2020 16:25:38 +0800 Subject: [PATCH] feat: add config support Signed-off-by: MiaoWoo --- packages/plugins/src/MiaoChat.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/plugins/src/MiaoChat.ts b/packages/plugins/src/MiaoChat.ts index 2251eb98..6f7e3390 100644 --- a/packages/plugins/src/MiaoChat.ts +++ b/packages/plugins/src/MiaoChat.ts @@ -4,7 +4,7 @@ import { server, plugin as pluginApi } from '@ms/api' import { inject } from '@ms/container'; -import { plugin, interfaces, cmd, listener, tab } from '@ms/plugin' +import { plugin, interfaces, cmd, listener, tab, config } from '@ms/plugin' import Tellraw from '@ms/common/dist/tellraw' const ByteArrayInputStream = Java.type("java.io.ByteArrayInputStream"); @@ -64,8 +64,9 @@ export class MiaoChat extends interfaces.Plugin { private spongeChannel: any; private spongeListener: any; + @config() private config = { - Version: "1.8.5", + Version: "1.0.0", BungeeCord: true, Server: "生存服", ChatFormats: {