summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-08-07 20:24:43 -0400
committerEvilSeph <evilseph@gmail.com>2011-08-07 20:24:43 -0400
commit5f20924e5dec0afd3b656471646988912ff01ae2 (patch)
tree2bc383d16f56cc01e8c3a6395926b1a87696edb0 /src
parentfd2b5f3ec59027f939cd0159137dea4bfc5fb2bf (diff)
downloadbukkit-5f20924e5dec0afd3b656471646988912ff01ae2.tar
bukkit-5f20924e5dec0afd3b656471646988912ff01ae2.tar.gz
bukkit-5f20924e5dec0afd3b656471646988912ff01ae2.tar.lz
bukkit-5f20924e5dec0afd3b656471646988912ff01ae2.tar.xz
bukkit-5f20924e5dec0afd3b656471646988912ff01ae2.zip
Added "getViewDistance()", "getAllowNether()", "hasWhitelist()" and "getAllowFlight()". Thanks robin0van0der0v!
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/Server.java32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index d71015d7..fcac8541 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -52,11 +52,18 @@ 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
*
* @return The IP string that this server is bound to, otherwise empty string
@@ -79,6 +86,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.
*
* @param message the message
@@ -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