feat: complete event and dispatch command

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-01-16 17:19:10 +08:00
parent effa7f70ec
commit 23868a58b9
2 changed files with 84 additions and 6 deletions

View File

@@ -21,10 +21,13 @@ export class BungeeServer implements server.Server {
throw new Error("Method not implemented.");
}
dispatchCommand(sender: string | any, command: string): boolean {
return false
if (typeof sender === 'string') {
sender = this.getPlayer(sender)
}
return Bungee.getPluginManager().dispatchCommand(sender, command)
}
dispatchConsoleCommand(command: string): boolean {
return false
return Bungee.getPluginManager().dispatchCommand(Bungee.getConsole(), command)
}
sendJson(sender: string | any, json: string): void {
throw new Error("Method not implemented.");