Added "getViewDistance()", "getAllowNether()", "hasWhitelist()" and "getAllowFlight()". Thanks robin0van0der0v!

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-08-07 20:24:43 -04:00
parent 57f0d1b824
commit 52e317ee5e

View file

@ -52,10 +52,17 @@ public interface Server {
/** /**
* Get the game port that the server runs on * 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(); 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 * 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(); 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. * Broadcast a message to all players.
* *
@ -301,4 +322,11 @@ public interface Server {
* @return Whether the server is in online mode. * @return Whether the server is in online mode.
*/ */
public boolean getOnlineMode(); public boolean getOnlineMode();
}
/**
* Gets whether this server allows flying or not.
*
* @return Whether this server allows flying or not.
*/
public boolean getAllowFlight();
}