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

修改实现方式

This commit is contained in:
2022-02-10 02:36:03 +08:00
parent 2f55d732ba
commit c46d00d5c4
24 changed files with 687 additions and 558 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>easysql-plugin-impl</artifactId>
<artifactId>easysql-plugin-core</artifactId>
<version>${project.parent.version}</version>
<scope>compile</scope>
</dependency>
@@ -10,40 +10,42 @@ import com.velocitypowered.api.proxy.ProxyServer;
import java.util.logging.Logger;
@Plugin(id = "easysql-plugin", name = "EasySQL Plugin For Velocity", version = "1.0.0",
description = "",
url = "https://github.com/CarmJos/EasySQL-Plugin", authors = "CarmJos"
@Plugin(id = "easysql-plugin", name = "EasySQL-Plugin",
version = "1.0.0",
description = "EasySQL Plugin For Velocity",
url = "https://github.com/CarmJos/EasySQL-Plugin",
authors = {"CarmJos", "GhostChu"}
)
public class EasySQLVelocity {
public class EasySQLVelocity {
private static EasySQLVelocity instance;
private static EasySQLVelocity instance;
private final ProxyServer server;
private final Logger logger;
private final ProxyServer server;
private final Logger logger;
@Inject
public EasySQLVelocity(ProxyServer server, Logger logger) {
instance = this;
this.server = server;
this.logger = logger;
// register listeners
server.getEventManager().register(this,this);
}
@Inject
public EasySQLVelocity(ProxyServer server, Logger logger) {
instance = this;
this.server = server;
this.logger = logger;
// register listeners
server.getEventManager().register(this, this);
}
public static EasySQLVelocity getInstance() {
return instance;
}
public static EasySQLVelocity getInstance() {
return instance;
}
public ProxyServer getServer() {
return server;
}
public ProxyServer getServer() {
return server;
}
public Logger getLogger() {
return logger;
}
public Logger getLogger() {
return logger;
}
@Subscribe
public void onInitialize(ProxyInitializeEvent event) {
}
@Subscribe
public void onInitialize(ProxyInitializeEvent event) {
}
}