Uses of Interface
com.velocitypowered.api.proxy.ServerConnection
Packages that use ServerConnection
Package
Description
Provides events for handling actions performed by players.
Provides an interface to interact with the proxy at a low level.
-
Uses of ServerConnection in com.velocitypowered.api.event.player
Methods in com.velocitypowered.api.event.player that return ServerConnectionModifier and TypeMethodDescriptionServerLoginPluginMessageEvent.getConnection()
ServerResourcePackRemoveEvent.getServerConnection()
Returns the server that tries to remove a resource pack from player or clear all of them.ServerResourcePackSendEvent.getServerConnection()
Constructors in com.velocitypowered.api.event.player with parameters of type ServerConnectionModifierConstructorDescriptionServerLoginPluginMessageEvent
(ServerConnection connection, ChannelIdentifier identifier, byte[] contents, int sequenceId) Constructs a newServerLoginPluginMessageEvent
.ServerResourcePackRemoveEvent
(UUID packId, ServerConnection serverConnection) Instantiates this event.ServerResourcePackSendEvent
(ResourcePackInfo receivedResourcePack, ServerConnection serverConnection) Constructs a new ServerResourcePackSendEvent. -
Uses of ServerConnection in com.velocitypowered.api.event.player.configuration
Methods in com.velocitypowered.api.event.player.configuration that return ServerConnectionModifier and TypeMethodDescriptionPlayerConfigurationEvent.server()
Returns the value of theserver
record component.PlayerEnterConfigurationEvent.server()
Returns the value of theserver
record component.PlayerEnteredConfigurationEvent.server()
Returns the value of theserver
record component.@NotNull ServerConnection
PlayerFinishConfigurationEvent.server()
Returns the value of theserver
record component.@NotNull ServerConnection
PlayerFinishedConfigurationEvent.server()
Returns the value of theserver
record component.Constructors in com.velocitypowered.api.event.player.configuration with parameters of type ServerConnectionModifierConstructorDescriptionPlayerConfigurationEvent
(@NotNull Player player, ServerConnection server) Creates an instance of aPlayerConfigurationEvent
record class.PlayerEnterConfigurationEvent
(@NotNull Player player, ServerConnection server) Creates an instance of aPlayerEnterConfigurationEvent
record class.PlayerEnteredConfigurationEvent
(@NotNull Player player, ServerConnection server) Creates an instance of aPlayerEnteredConfigurationEvent
record class.PlayerFinishConfigurationEvent
(@NotNull Player player, @NotNull ServerConnection server) Creates an instance of aPlayerFinishConfigurationEvent
record class.PlayerFinishedConfigurationEvent
(@NotNull Player player, @NotNull ServerConnection server) Creates an instance of aPlayerFinishedConfigurationEvent
record class. -
Uses of ServerConnection in com.velocitypowered.api.proxy
Methods in com.velocitypowered.api.proxy that return types with arguments of type ServerConnectionModifier and TypeMethodDescriptionPlayer.getCurrentServer()
Returns the server that the player is currently connected to.