mirror of
https://github.com/YouHaveTrouble/Enchantio.git
synced 2026-05-12 06:06:55 +00:00
stop the server if someone tries to disable the plugin
This commit is contained in:
@@ -16,6 +16,8 @@ public final class Enchantio extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
// Plugin shutdown logic
|
||||
if (getServer().isStopping()) return;
|
||||
getLogger().severe("Enchantio is being disabled without a server shutdown. Server will be shut down to prevent issues.");
|
||||
getServer().shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user