mirror of
https://github.com/CarmJos/MineSQL.git
synced 2026-06-04 16:43:03 +08:00
refactor(api): 重新设计API结构
This commit is contained in:
@@ -57,7 +57,7 @@ public class MineSQLBukkit extends EasyPlugin implements MineSQLPlatform {
|
||||
@Override
|
||||
protected void shutdown() {
|
||||
log("终止全部数据库连接...");
|
||||
this.core.getRegistry().shutdownAll();
|
||||
this.core.shutdownAll();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -66,7 +66,7 @@ public class MineSQLBungee extends Plugin implements MineSQLPlatform {
|
||||
public void onDisable() {
|
||||
outputInfo();
|
||||
getLogger().info("终止全部数据库连接...");
|
||||
this.core.getRegistry().shutdownAll();
|
||||
this.core.shutdownAll();
|
||||
}
|
||||
|
||||
public static MineSQLBungee getInstance() {
|
||||
|
||||
@@ -86,7 +86,7 @@ public class MineSQLVelocity implements MineSQLPlatform {
|
||||
public void onShutdown(ProxyShutdownEvent event) {
|
||||
outputInfo();
|
||||
getLogger().info("终止全部数据库连接...");
|
||||
this.core.getRegistry().shutdownAll();
|
||||
this.core.shutdownAll();
|
||||
}
|
||||
|
||||
public ProxyServer getServer() {
|
||||
|
||||
Reference in New Issue
Block a user