feat: update server filter

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-01-17 17:43:45 +08:00
parent 85fe0cf87a
commit 5642a93974
2 changed files with 13 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ export class Test extends interfaces.Plugin {
return ['run', 'reload', 'channel', 'add', 'yaml', 'speed', 'top', 'up']
}
@listener({ servertype: 'bukkit' })
@listener({ servers: ['bukkit'] })
playerjoin(event: any) {
this.logger.console('PlayerJoinEvent: ', event.player.name)
}