feat: add nukkit example

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-02-27 17:59:06 +08:00
parent 15a75dffe2
commit 65d112be09

View File

@ -23,33 +23,43 @@ export class HelloWorld extends interfaces.Plugin {
} }
bukkitload() { bukkitload() {
this.logger.log('Load When ServerType is Bukkit!') this.logger.log('Plugin Load When ServerType is Bukkit!')
} }
bukkitenable() { bukkitenable() {
this.logger.log('Enable When ServerType is Bukkit!') this.logger.log('Plugin Enable When ServerType is Bukkit!')
} }
bukkitdisable() { bukkitdisable() {
this.logger.log('Disable When ServerType is Bukkit!') this.logger.log('Plugin Disable When ServerType is Bukkit!')
} }
spongeload() { spongeload() {
this.logger.log('Load When ServerType is Sponge!') this.logger.log('Plugin Load When ServerType is Sponge!')
} }
spongeenable() { spongeenable() {
this.logger.log('Enable When ServerType is Sponge!') this.logger.log('Plugin Enable When ServerType is Sponge!')
} }
spongedisable() { spongedisable() {
this.logger.log('Disable When ServerType is Sponge!') this.logger.log('Plugin Disable When ServerType is Sponge!')
} }
bungeeload() { bungeeload() {
this.logger.log('Load When ServerType is BungeeCord!') this.logger.log('Plugin Load When ServerType is BungeeCord!')
} }
bungeeenable() { bungeeenable() {
this.logger.log('Enable When ServerType is BungeeCord!') this.logger.log('Plugin Enable When ServerType is BungeeCord!')
} }
bungeedisable() { 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() @cmd()