Enable hardcore support. Fixes BUKKIT-2259

- Hardcore requires a newly generated world
- You will be banned if you die in a hardcore world
- You will NOT be banned if you die in a non-vanilla world
- Your "heart container" will not change without logging back in. (Vanilla bug)
This commit is contained in:
feildmaster 2012-08-12 16:50:00 -05:00
parent aa92f0e313
commit 8748c8c757

View File

@ -161,7 +161,7 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
String name = (dimension == 0) ? s : s + "_" + worldType; String name = (dimension == 0) ? s : s + "_" + worldType;
org.bukkit.generator.ChunkGenerator gen = this.server.getGenerator(name); org.bukkit.generator.ChunkGenerator gen = this.server.getGenerator(name);
WorldSettings worldsettings = new WorldSettings(i, this.getGamemode(), this.getGenerateStructures(), false, worldtype); WorldSettings worldsettings = new WorldSettings(i, this.getGamemode(), this.getGenerateStructures(), this.isHardcore(), worldtype);
if (j == 0) { if (j == 0) {
if (this.L()) { // Strip out DEMO? if (this.L()) { // Strip out DEMO?