1
mirror of https://github.com/CarmJos/MineSQL.git synced 2026-06-05 00:48:16 +08:00

完成插件指令

This commit is contained in:
2022-02-23 02:46:07 +08:00
parent 108442ad43
commit c653391652
17 changed files with 478 additions and 62 deletions
@@ -1,9 +1,7 @@
package cc.carm.plugin.easysql.bukkit;
package cc.carm.plugin.easysql;
import cc.carm.lib.easyplugin.EasyPlugin;
import cc.carm.lib.easyplugin.i18n.EasyPluginMessageProvider;
import cc.carm.plugin.easysql.EasySQLPluginPlatform;
import cc.carm.plugin.easysql.EasySQLRegistryImpl;
import cc.carm.plugin.easysql.api.DBConfiguration;
import cc.carm.plugin.easysql.util.PropertiesUtil;
import cc.carm.plugin.easysql.util.ResourceReadUtil;
@@ -24,21 +22,22 @@ public class EasySQLBukkit extends EasyPlugin implements EasySQLPluginPlatform {
protected static EasySQLBukkit instance;
protected PaperCommandManager commandManager;
protected EasySQLRegistryImpl registry;
private PaperCommandManager commandManager;
private EasySQLRegistryImpl registry;
@Override
protected void load() {
EasySQLBukkit.instance = this;
this.commandManager = new PaperCommandManager(this);
this.registry = new EasySQLRegistryImpl(this);
initializeAPI(getRegistry());
}
@Override
protected boolean initialize() {
//TODO COMMANDS
this.commandManager = new PaperCommandManager(this);
initializeCommands(getCommandManager());
return true;
}
@@ -69,7 +68,6 @@ public class EasySQLBukkit extends EasyPlugin implements EasySQLPluginPlatform {
return EasySQLBukkit.instance;
}
protected PaperCommandManager getCommandManager() {
return commandManager;
}
@@ -1,5 +1,6 @@
main: cc.carm.plugin.easysql.bukkit.EasySQLBukkit
main: cc.carm.plugin.easysql.EasySQLBukkit
version: ${project.version}
prefix: EasySQL-Plugin
name: EasySQL-Plugin-Bukkit
load: STARTUP
@@ -9,13 +10,4 @@ authors:
- CarmJos
- GhostChu
api-version: 1.13
prefix: EasySQL
commands:
"EasySQLBukkit":
usage: "/EasySQLBukkit help"
description: "EasySQL独立插件的主指令,只允许后台运行。"
aliases:
- "EasySQL"
api-version: 1.13