forked from kaboomserver/extras
Remove force shutdown code
Let's see if this is necessary anymore.
This commit is contained in:
parent
28c78be287
commit
210d6d7d98
1 changed files with 0 additions and 10 deletions
|
@ -108,14 +108,4 @@ public final class Main extends JavaPlugin {
|
||||||
new WorldCreator("world_flatlands").generateStructures(false).type(WorldType.FLAT)
|
new WorldCreator("world_flatlands").generateStructures(false).type(WorldType.FLAT)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDisable() {
|
|
||||||
if (Bukkit.isStopping()) {
|
|
||||||
/* This should never be done in a critical environment, as it can lead to data corruption.
|
|
||||||
We are not too concerned with data corruption, as the server resets daily. In our case, it's
|
|
||||||
more important to ensure that the server never hangs. */
|
|
||||||
Runtime.getRuntime().halt(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue