feat: 新增公告接口

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-10-25 15:54:38 +08:00
parent b3fa8790e3
commit cf9153c134
7 changed files with 35 additions and 4 deletions

View File

@ -58,6 +58,12 @@ export class BungeeServer implements server.Server {
getService(service: string) {
throw new Error("Method not implemented.")
}
broadcast(message: string, permission: string) {
return Bungee.broadcast(message)
}
broadcastMessage(message: string) {
return Bungee.broadcast(message)
}
dispatchCommand(sender: string | any, command: string): boolean {
if (typeof sender === 'string') {
sender = this.getPlayer(sender)