Remove force shutdown code

Let's see if this is necessary anymore.
This commit is contained in:
kaboom 2022-05-20 04:27:27 +03:00
parent 28c78be287
commit 210d6d7d98

View file

@ -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);
}
}
} }