mirror of
https://github.com/kaboomserver/extras.git
synced 2025-01-08 23:48:14 +00:00
Ensure the server always stops
This commit is contained in:
parent
3b29ee5dc0
commit
e184b0c3bf
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ public final class Main extends JavaPlugin {
|
|||
@Override
|
||||
public void onDisable() {
|
||||
if (Bukkit.isStopping()) {
|
||||
System.exit(1);
|
||||
Runtime.getRuntime().halt(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue