From 0b416adfd204b15ba4595ef08d8bc95c4449ff21 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Thu, 27 Feb 2020 17:59:06 +0800 Subject: [PATCH] feat: add nukkit example Signed-off-by: MiaoWoo --- packages/plugins/src/HelloWorld.ts | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/packages/plugins/src/HelloWorld.ts b/packages/plugins/src/HelloWorld.ts index 947aa494..39dd23fa 100644 --- a/packages/plugins/src/HelloWorld.ts +++ b/packages/plugins/src/HelloWorld.ts @@ -23,33 +23,43 @@ export class HelloWorld extends interfaces.Plugin { } bukkitload() { - this.logger.log('Load When ServerType is Bukkit!') + this.logger.log('Plugin Load When ServerType is Bukkit!') } bukkitenable() { - this.logger.log('Enable When ServerType is Bukkit!') + this.logger.log('Plugin Enable When ServerType is Bukkit!') } bukkitdisable() { - this.logger.log('Disable When ServerType is Bukkit!') + this.logger.log('Plugin Disable When ServerType is Bukkit!') } spongeload() { - this.logger.log('Load When ServerType is Sponge!') + this.logger.log('Plugin Load When ServerType is Sponge!') } spongeenable() { - this.logger.log('Enable When ServerType is Sponge!') + this.logger.log('Plugin Enable When ServerType is Sponge!') } spongedisable() { - this.logger.log('Disable When ServerType is Sponge!') + this.logger.log('Plugin Disable When ServerType is Sponge!') } bungeeload() { - this.logger.log('Load When ServerType is BungeeCord!') + this.logger.log('Plugin Load When ServerType is BungeeCord!') } bungeeenable() { - this.logger.log('Enable When ServerType is BungeeCord!') + this.logger.log('Plugin Enable When ServerType is BungeeCord!') } bungeedisable() { - this.logger.log('Disable When ServerType is BungeeCord!') + this.logger.log('Plugin Disable When ServerType is BungeeCord!') + } + + nukkitload() { + this.logger.log('Plugin Load When ServerType is Nukkit!') + } + nukkitenable() { + this.logger.log('Plugin Enable When ServerType is Nukkit!') + } + nukkitdisable() { + this.logger.log('Plugin Disable When ServerType is Nukkit!') } @cmd()