Ensure the server always stops

This commit is contained in:
mathiascode 2020-06-14 18:24:39 +03:00
parent 3b29ee5dc0
commit e184b0c3bf

View file

@ -120,7 +120,7 @@ public final class Main extends JavaPlugin {
@Override
public void onDisable() {
if (Bukkit.isStopping()) {
System.exit(1);
Runtime.getRuntime().halt(0);
}
}
}