From 52e317ee5ecefe1ed5c2eede55cf92a637b72f0a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 7 Aug 2011 20:24:43 -0400 Subject: [PATCH] Added "getViewDistance()", "getAllowNether()", "hasWhitelist()" and "getAllowFlight()". Thanks robin0van0der0v! By: EvilSeph --- .../src/main/java/org/bukkit/Server.java | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index d71015d743..fcac85414a 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -52,10 +52,17 @@ public interface Server { /** * Get the game port that the server runs on * - * @return The port number of this servers + * @return The port number of this server */ public int getPort(); + /** + * Get the view distance from this server. + * + * @return The view distance from this server. + */ + public int getViewDistance(); + /** * Get the IP that this server is bound to or empty string if not specified * @@ -78,6 +85,20 @@ public interface Server { */ public String getServerId(); + /** + * Gets whether this server allows the Nether or not. + * + * @return Whether this server allows the Nether or not. + */ + public boolean getAllowNether(); + + /** + * Gets whether this server has a whitelist or not. + * + * @return Whether this server has a whitelist or not. + */ + public boolean hasWhitelist(); + /** * Broadcast a message to all players. * @@ -301,4 +322,11 @@ public interface Server { * @return Whether the server is in online mode. */ public boolean getOnlineMode(); -} + + /** + * Gets whether this server allows flying or not. + * + * @return Whether this server allows flying or not. + */ + public boolean getAllowFlight(); +} \ No newline at end of file