Interface Server
- All Superinterfaces:
ClientHandler
,ExtraDataHandler<String>
,ServerInfo
,SubDataSerializable
- All Known Subinterfaces:
SubServer
- All Known Implementing Classes:
ExternalSubServer
,InternalSubServer
,ServerImpl
,SubServerImpl
Server Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add this Server to a Groupdefault boolean
Commands the Serverdefault boolean
Commands the Serverboolean
Commands the ServerGet the Display Name of this ServerGet this Server's GroupsgetMotd()
Gets the MOTD of the ServerGet players on this server across all known proxiesGet the Signature of this ObjectGet a copy of the current whitelistboolean
isHidden()
If the server is hidden from playersboolean
Gets if the Server is Restrictedboolean
isWhitelisted
(UUID player) See if a player is whitelistedvoid
persist()
Makes it so the server object will still exist within the server manager even if it is disconnectedvoid
removeGroup
(String value) Remove this Server from a Groupvoid
setDisplayName
(String value) Sets the Display Name for this Servervoid
setHidden
(boolean value) Set if the server is hidden from playersvoid
Sets the MOTD of the Servervoid
setRestricted
(boolean value) Sets if the Server is Restrictedvoid
setSubData
(DataClient client, int channel) Link a SubData Client to this Objectvoid
unwhitelist
(UUID player) Remove a player to the whitelistvoid
Add a player to the whitelist (for use with restricted servers)Methods inherited from interface net.ME1312.SubData.Server.ClientHandler
forSubData, getSubData, removeSubData
Methods inherited from interface net.ME1312.Galaxi.Library.ExtraDataHandler
addExtra, getExtra, getExtra, hasExtra, removeExtra
Methods inherited from interface net.md_5.bungee.api.config.ServerInfo
canAccess, getAddress, getName, getPermission, getPlayers, getSocketAddress, ping, sendData, sendData
-
Method Details
-
setSubData
Link a SubData Client to this Object- Parameters:
client
- Client to Linkchannel
- Channel ID
-
getDisplayName
String getDisplayName()Get the Display Name of this Server- Returns:
- Display Name
-
setDisplayName
Sets the Display Name for this Server- Parameters:
value
- Value (or null to reset)
-
getGroups
Get this Server's Groups- Returns:
- Group names
-
addGroup
Add this Server to a Group- Parameters:
value
- Group name
-
removeGroup
Remove this Server from a Group- Parameters:
value
- value Group name
-
command
Commands the Server- Parameters:
player
- Player who's Commandingtarget
- Player who will Sendcommand
- Command to Send
-
command
Commands the Server- Parameters:
player
- Player who's Commandingcommand
- Command to Send
-
command
Commands the Server- Parameters:
command
- Command to Send
-
getRemotePlayers
Collection<RemotePlayer> getRemotePlayers()Get players on this server across all known proxies- Returns:
- Remote Player Collection
-
isHidden
boolean isHidden()If the server is hidden from players- Returns:
- Hidden Status
-
setHidden
void setHidden(boolean value) Set if the server is hidden from players- Parameters:
value
- Value
-
getMotd
String getMotd()Gets the MOTD of the Server- Specified by:
getMotd
in interfaceServerInfo
- Returns:
- Server MOTD
-
setMotd
Sets the MOTD of the Server- Parameters:
value
- Value
-
isRestricted
boolean isRestricted()Gets if the Server is Restricted- Specified by:
isRestricted
in interfaceServerInfo
- Returns:
- Restricted Status
-
setRestricted
void setRestricted(boolean value) Sets if the Server is Restricted- Parameters:
value
- Value
-
getWhitelist
Collection<UUID> getWhitelist()Get a copy of the current whitelist- Returns:
- Player Whitelist
-
isWhitelisted
See if a player is whitelisted- Parameters:
player
- Player to check- Returns:
- Whitelisted Status
-
whitelist
Add a player to the whitelist (for use with restricted servers)- Parameters:
player
- Player to add
-
unwhitelist
Remove a player to the whitelist- Parameters:
player
- Player to remove
-
persist
void persist()Makes it so the server object will still exist within the server manager even if it is disconnected -
getSignature
String getSignature()Get the Signature of this Object- Returns:
- Object Signature
-