diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index 3eccc275b8..ec51df8dd9 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -208,6 +208,15 @@ public final class Bukkit { return server.getGenerateStructures(); } + /** + * Get max world size. + * + * @return the maximum world size as specified for the server + */ + public static int getMaxWorldSize() { + return server.getMaxWorldSize(); + } + /** * Gets whether this server allows the End or not. * diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index a1a179fb04..d5aafa0ee0 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -173,6 +173,13 @@ public interface Server extends PluginMessageRecipient { */ public boolean getGenerateStructures(); + /** + * Get max world size. + * + * @return the maximum world size as specified for the server + */ + public int getMaxWorldSize(); + /** * Gets whether this server allows the End or not. *