#564: Add method to get max world size

By: pop4959 <pop4959@gmail.com>
This commit is contained in:
Bukkit/Spigot 2020-12-13 11:30:52 +11:00
parent c88819ddd0
commit dcb21e0c7d
2 changed files with 16 additions and 0 deletions

View File

@ -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.
*

View File

@ -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.
*