From 93406ae5d2897788aa3aac2bfb953137ea4b2a4a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 17 Jun 2011 04:49:21 +0100 Subject: [PATCH] Added set/getSpawnRadius in Server By: Dinnerbone --- paper-api/src/main/java/org/bukkit/Server.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 2a084a180d..ac43591a60 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -271,4 +271,18 @@ public interface Server { * @return Map of aliases to command names */ public Map getCommandAliases(); + + /** + * Gets the radius, in blocks, around each worlds spawn point to protect + * + * @return Spawn radius, or 0 if none + */ + public int getSpawnRadius(); + + /** + * Sets the radius, in blocks, around each worlds spawn point to protect + * + * @param value New spawn radius, or 0 if none + */ + public void setSpawnRadius(int value); }