public class Server extends net.md_5.bungee.BungeeServerInfo implements ClientHandler
Constructor and Description |
---|
Server(java.lang.String name,
java.net.InetSocketAddress address,
java.lang.String motd,
boolean hidden,
boolean restricted) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMotd()
Gets the MOTD of the Server
|
Client |
getSubDataClient()
Gets the SubData Client
|
boolean |
isHidden()
If the server is hidden from players
|
boolean |
isRestricted()
Gets if the Server is Restricted
|
void |
linkSubDataClient(Client client)
Link a SubData Client to this Object
|
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.net.InetSocketAddress address, java.lang.String motd, boolean hidden, boolean restricted) throws InvalidServerException
InvalidServerException
public Client getSubDataClient()
ClientHandler
getSubDataClient
in interface ClientHandler
public void linkSubDataClient(Client client)
ClientHandler
linkSubDataClient
in interface ClientHandler
client
- Client to Linkpublic 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