Interface RegisteredServer
- All Superinterfaces:
Audience,ChannelMessageSink,Pointered
Represents a server that has been registered with the proxy. The
Audience associated with
a RegisteredServer represent all players on the server connected to this proxy and do not
interact with the server in any way.-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Player> Returns a list of all the players currently connected to this server on this proxy.getQueue()Gets the queue for this server.Returns theServerInfofor this server.longGet the total player count of the server (redis support).ping()Attempts to ping the remote server and return the server list ping result.ping(PingOptions pingOptions) Attempts to ping the remote server and return the server list ping result according to the options provided.Methods inherited from interface net.kyori.adventure.audience.Audience
clearResourcePacks, clearTitle, closeDialog, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showDialog, showTitle, stopSound, stopSoundMethods inherited from interface com.velocitypowered.api.proxy.messages.ChannelMessageSink
sendPluginMessage, sendPluginMessageMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Method Details
-
getServerInfo
ServerInfo getServerInfo()Returns theServerInfofor this server.- Returns:
- the server info
-
getPlayersConnected
Collection<? extends Player> getPlayersConnected()Returns a list of all the players currently connected to this server on this proxy.- Returns:
- the players on this proxy
-
getTotalPlayerCount
long getTotalPlayerCount()Get the total player count of the server (redis support).- Returns:
- The total player count.
-
ping
CompletableFuture<ServerPing> ping()Attempts to ping the remote server and return the server list ping result.- Returns:
- the server ping result from the server
-
ping
Attempts to ping the remote server and return the server list ping result according to the options provided.- Parameters:
pingOptions- the options provided for pinging the server- Returns:
- the server ping result from the server
- Since:
- 3.2.0
-
getQueue
Queue getQueue()Gets the queue for this server.- Returns:
- The queue of the server
-