diff options
author | Mike Primm <mike@primmhome.com> | 2012-03-10 01:28:32 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-10 18:36:28 -0500 |
commit | bdd2139c785305e1e56c4e0b707d709d218abbed (patch) | |
tree | 50731314cdb2f1437343c95ec5cc0aa620f55229 /src/main | |
parent | eaa56941f3fa8b6c3a44c6239b3293107e54ae4a (diff) | |
download | craftbukkit-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
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 |
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"); } |