diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/Bukkit.java | 8 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 9327ecbe..601ebdc2 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -102,6 +102,14 @@ public final class Bukkit { return server.getServerId(); } + public static String getWorldType() { + return server.getWorldType(); + } + + public static boolean getGenerateStructures() { + return server.getGenerateStructures(); + } + public static boolean getAllowNether() { return server.getAllowNether(); } diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 537b65c0..5f79700e 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -118,6 +118,20 @@ public interface Server extends PluginMessageRecipient { public String getServerId(); /** + * Get world type (level-type setting) for default world + * + * @return The value of level-type (e.g. DEFAULT, FLAT, DEFAULT_1_1) + */ + public String getWorldType(); + + /** + * Get generate-structures setting + * + * @return true if structure generation is enabled, false if not + */ + public boolean getGenerateStructures(); + + /** * Gets whether this server allows the End or not. * * @return Whether this server allows the End or not. |