feat: add server module

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-01-14 17:44:20 +08:00
parent 93ec202894
commit 093a3dda00
6 changed files with 172 additions and 4 deletions

View File

@ -5,5 +5,11 @@ export namespace server {
export interface Server {
getVersion(): string;
getPlayer(name: string): any;
getOnlinePlayers(): any[];
getConsoleSender(): any;
getService(service: string): any;
dispatchCommand(sender: string | any, command: string): boolean;
dispatchConsoleCommand(command: string): boolean;
sendJson(sender: string | any, json: object | string): void;
}
}