public class Server
extends net.md_5.bungee.BungeeServerInfo
Constructor and Description |
---|
Server(java.lang.String name,
java.lang.String display,
java.net.InetSocketAddress address,
java.lang.String motd,
boolean hidden,
boolean restricted) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Get the Display Name of this Server
|
java.lang.String |
getMotd()
Gets the MOTD of the Server
|
boolean |
isHidden()
If the server is hidden from players
|
boolean |
isRestricted()
Gets if the Server is Restricted
|
void |
setDisplayName(java.lang.String value)
Sets the Display Name for this Server
|
void |
setHidden(boolean value)
Set if the server is hidden from players
|
void |
setMotd(java.lang.String value)
Sets the MOTD of the Server
|
void |
setRestricted(boolean value)
Sets if the Server is Restricted
|
public Server(java.lang.String name, java.lang.String display, java.net.InetSocketAddress address, java.lang.String motd, boolean hidden, boolean restricted)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String value)
value
- Value (or null to reset)public boolean isHidden()
public void setHidden(boolean value)
value
- Valuepublic java.lang.String getMotd()
getMotd
in interface net.md_5.bungee.api.config.ServerInfo
getMotd
in class net.md_5.bungee.BungeeServerInfo
public void setMotd(java.lang.String value)
value
- Valuepublic boolean isRestricted()
isRestricted
in class net.md_5.bungee.BungeeServerInfo
public void setRestricted(boolean value)
value
- Value