public class ServerContainer extends net.md_5.bungee.BungeeServerInfo implements Server
Constructor and Description |
---|
ServerContainer(java.lang.String name,
java.net.InetSocketAddress address,
java.lang.String motd,
boolean hidden,
boolean restricted) |
Modifier and Type | Method and Description |
---|---|
void |
addExtra(java.lang.String handle,
java.lang.Object value)
Add an extra value to this Object
|
void |
addGroup(java.lang.String value)
Add this Server to a Group
|
java.lang.String |
getDisplayName()
Get the Display Name of this Server
|
YAMLSection |
getExtra()
Get the extra value section
|
YAMLValue |
getExtra(java.lang.String handle)
Get an extra value
|
java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>> |
getGlobalPlayers()
Get players on this server across all known proxies
|
java.util.List<java.lang.String> |
getGroups()
Get this Server's Groups
|
java.lang.String |
getSignature()
Get the Signature of this Object
|
Client |
getSubData()
Gets the SubData Client
|
boolean |
hasExtra(java.lang.String handle)
Determine if an extra value exists
|
boolean |
isHidden()
If the server is hidden from players
|
void |
removeExtra(java.lang.String handle)
Remove an extra value from this Object
|
void |
removeGroup(java.lang.String value)
Remove this Server from a Group
|
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
|
void |
setSubData(Client client)
Link a SubData Client to this Object
|
java.lang.String |
toString() |
addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData
getMotd, isRestricted
public ServerContainer(java.lang.String name, java.net.InetSocketAddress address, java.lang.String motd, boolean hidden, boolean restricted) throws InvalidServerException
InvalidServerException
public Client getSubData()
ClientHandler
getSubData
in interface ClientHandler
public void setSubData(Client client)
ClientHandler
setSubData
in interface ClientHandler
client
- Client to LinkClient.setHandler(ClientHandler)
public java.lang.String getDisplayName()
Server
getDisplayName
in interface Server
public void setDisplayName(java.lang.String value)
Server
setDisplayName
in interface Server
value
- Value (or null to reset)public java.util.List<java.lang.String> getGroups()
Server
public void addGroup(java.lang.String value)
Server
public void removeGroup(java.lang.String value)
Server
removeGroup
in interface Server
value
- value Group namepublic java.util.Collection<NamedContainer<java.lang.String,java.util.UUID>> getGlobalPlayers()
Server
getGlobalPlayers
in interface Server
public boolean isHidden()
Server
public void setHidden(boolean value)
Server
public void setMotd(java.lang.String value)
Server
public void setRestricted(boolean value)
Server
setRestricted
in interface Server
value
- Valuepublic final java.lang.String getSignature()
Server
getSignature
in interface Server
public void addExtra(java.lang.String handle, java.lang.Object value)
ExtraDataHandler
addExtra
in interface ExtraDataHandler
handle
- Handlevalue
- Valuepublic boolean hasExtra(java.lang.String handle)
ExtraDataHandler
hasExtra
in interface ExtraDataHandler
handle
- Handlepublic YAMLValue getExtra(java.lang.String handle)
ExtraDataHandler
getExtra
in interface ExtraDataHandler
handle
- Handlepublic YAMLSection getExtra()
ExtraDataHandler
getExtra
in interface ExtraDataHandler
public void removeExtra(java.lang.String handle)
ExtraDataHandler
removeExtra
in interface ExtraDataHandler
handle
- Handlepublic java.lang.String toString()
toString
in class net.md_5.bungee.BungeeServerInfo