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 TypeMethodDescriptionvoidAdd this Server to a Groupdefault booleanCommands the Serverdefault booleanCommands the ServerbooleanCommands 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 whitelistbooleanisHidden()If the server is hidden from playersbooleanGets if the Server is RestrictedbooleanisWhitelisted(UUID player) See if a player is whitelistedvoidpersist()Makes it so the server object will still exist within the server manager even if it is disconnectedvoidremoveGroup(String value) Remove this Server from a GroupvoidsetDisplayName(String value) Sets the Display Name for this ServervoidsetHidden(boolean value) Set if the server is hidden from playersvoidSets the MOTD of the ServervoidsetRestricted(boolean value) Sets if the Server is RestrictedvoidsetSubData(DataClient client, int channel) Link a SubData Client to this Objectvoidunwhitelist(UUID player) Remove a player to the whitelistvoidAdd a player to the whitelist (for use with restricted servers)Methods inherited from interface net.ME1312.SubData.Server.ClientHandler
forSubData, getSubData, removeSubDataMethods inherited from interface net.ME1312.Galaxi.Library.ExtraDataHandler
addExtra, getExtra, getExtra, hasExtra, removeExtraMethods 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:
getMotdin 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:
isRestrictedin 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
-