Interface RegisteredServer
-
- All Superinterfaces:
Audience,ChannelMessageSink
public interface RegisteredServer extends ChannelMessageSink, Audience
Represents a server that has been registered with the proxy. TheAudienceassociated with aRegisteredServerrepresent all players on the server connected to this proxy and do not interact with the server in any way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Player>connectedPlayers()Returns a list of all the players currently connected to this server on this proxy.CompletableFuture<ServerPing>ping()Attempts to ping the remote server and return the server list ping result.ServerInfoserverInfo()Returns theServerInfofor this server.-
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
-
Methods inherited from interface com.velocitypowered.api.proxy.messages.ChannelMessageSink
sendPluginMessage
-
-
-
-
Method Detail
-
serverInfo
ServerInfo serverInfo()
Returns theServerInfofor this server.- Returns:
- the server info
-
connectedPlayers
Collection<Player> connectedPlayers()
Returns a list of all the players currently connected to this server on this proxy.- Returns:
- the players on this proxy
-
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
-
-