diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 32 |
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 |