mirror of
https://github.com/CarmJos/MineSQL.git
synced 2026-06-05 09:01:42 +08:00
完成插件指令
This commit is contained in:
@@ -98,6 +98,10 @@
|
||||
<pattern>cc.carm.lib.easyplugin</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.easyplugin</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>cc.carm.lib.githubreleases4j</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.githubreleases4j</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>co.aikar.commands</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.acf</shadedPattern> <!-- Replace this -->
|
||||
@@ -108,6 +112,15 @@
|
||||
</relocation>
|
||||
</relocations>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>co.aikar:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>META-INF/*.txt</exclude>
|
||||
<exclude>acf-core*.properties</exclude>
|
||||
<exclude>acf-minecraft*.properties</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>*:*</artifact>
|
||||
<excludes>
|
||||
|
||||
+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