mirror of
https://github.com/CarmJos/cn2b2t-project.git
synced 2024-09-19 13:55:45 +00:00
自动移除服务器
This commit is contained in:
parent
1f5428ccdc
commit
1d6b94dc01
@ -74,6 +74,8 @@ public class Main extends JavaPlugin {
|
||||
public void onDisable() {
|
||||
log("&c&LGhost &f" + this.getName().substring(5) + " &7开始卸载...");
|
||||
|
||||
log("&7├ &f移除服务器");
|
||||
ServersManager.unregisterServer();
|
||||
|
||||
log("&7├ &f卸载监听器...");
|
||||
Bukkit.getServicesManager().unregisterAll(this);
|
||||
@ -83,6 +85,7 @@ public class Main extends JavaPlugin {
|
||||
log("&7├ &f关闭线程...");
|
||||
Main.getInstance().getServer().getScheduler().cancelTasks(Main.getInstance());
|
||||
|
||||
|
||||
log("&7└ &a&l卸载完成!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user