[Bleeding] Add getWorldType() and getGenerateStructures() to CraftServer. Fixes BUKKIT-855

By: Mike Primm <mike@primmhome.com>
This commit is contained in:
CraftBukkit/Spigot 2012-03-10 01:28:32 -06:00
parent b102a1ce59
commit 023ce58427

View file

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