feat: add download and getPluginsFolder

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-02-29 22:28:43 +08:00
parent ce431aded4
commit 488eecba07
6 changed files with 30 additions and 5 deletions

View File

@ -4,7 +4,7 @@ export namespace plugin {
*/
export const Plugin = Symbol("Plugin");
/**
* MiaoScript Plugin
* MiaoScript Plugin Folder
*/
export const PluginFolder = Symbol("PluginFolder");
/**

View File

@ -26,6 +26,7 @@ export namespace server {
getService(service: string): any;
dispatchCommand(sender: string | any, command: string): boolean;
dispatchConsoleCommand(command: string): boolean;
getPluginsFolder(): string;
sendJson(sender: string | any, json: object | string): void;
}
}