mirror of
https://github.com/kaboomserver/extras.git
synced 2025-08-05 12:03:08 +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
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
if (Bukkit.isStopping()) {
|
if (Bukkit.isStopping()) {
|
||||||
System.exit(1);
|
Runtime.getRuntime().halt(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue