summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Primm <mike@primmhome.com>2012-03-10 01:28:32 -0600
committerEvilSeph <evilseph@gmail.com>2012-03-10 18:36:28 -0500
commitbdd2139c785305e1e56c4e0b707d709d218abbed (patch)
tree50731314cdb2f1437343c95ec5cc0aa620f55229
parenteaa56941f3fa8b6c3a44c6239b3293107e54ae4a (diff)
downloadcraftbukkit-bdd2139c785305e1e56c4e0b707d709d218abbed.tar
craftbukkit-bdd2139c785305e1e56c4e0b707d709d218abbed.tar.gz
craftbukkit-bdd2139c785305e1e56c4e0b707d709d218abbed.tar.lz
craftbukkit-bdd2139c785305e1e56c4e0b707d709d218abbed.tar.xz
craftbukkit-bdd2139c785305e1e56c4e0b707d709d218abbed.zip
[Bleeding] Add getWorldType() and getGenerateStructures() to CraftServer. Fixes BUKKIT-855
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 57c3dd6e..5801e2e2 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");
}