diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index 9327ecbec1..601ebdc256 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 537b65c03b..5f79700ee3 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -117,6 +117,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. *