From bdd2139c785305e1e56c4e0b707d709d218abbed Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sat, 10 Mar 2012 01:28:32 -0600 Subject: [PATCH] [Bleeding] Add getWorldType() and getGenerateStructures() to CraftServer. Fixes BUKKIT-855 --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 57c3dd6e48..5801e2e289 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -373,6 +373,14 @@ public final class CraftServer implements Server { return this.getConfigString("server-id", "unnamed"); } + public String getWorldType() { + return this.getConfigString("level-type", "DEFAULT"); + } + + public boolean getGenerateStructures() { + return this.getConfigBoolean("generate-structures", true); + } + public boolean getAllowEnd() { return this.configuration.getBoolean("settings.allow-end"); }