mirror of
https://github.com/CarmJos/MineSQL.git
synced 2026-06-05 00:48:16 +08:00
完成插件指令
This commit is contained in:
+7
-9
@@ -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
|
||||
Reference in New Issue
Block a user