mirror of
https://github.com/CarmJos/MineSQL.git
synced 2026-06-04 16:43:03 +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
|
||||
@@ -118,6 +118,7 @@
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>META-INF/*.txt</exclude>
|
||||
<exclude>acf-minecraft*.properties</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
@@ -130,6 +131,10 @@
|
||||
<pattern>org.json</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.json</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 -->
|
||||
|
||||
@@ -17,4 +17,74 @@
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.2.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<finalName>${project.name}-${project.version}</finalName>
|
||||
<outputDirectory>${project.parent.basedir}/asset/</outputDirectory>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>*:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>META-INF/*.txt</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>org.bstats</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.bstats</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.json</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.json</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 -->
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>co.aikar.locales</pattern>
|
||||
<shadedPattern>cc.carm.plugin.easysql.lib.locales</shadedPattern> <!-- Replace this -->
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user