Uses of Interface
com.velocitypowered.api.proxy.Player
Packages that use Player
Package
Description
Provides events for handling incoming connections to the proxy and logins.
Provides events for handling actions performed by players.
Provides an interface to interact with the proxy at a low level.
Provides utilities to handle server information.
-
Uses of Player in com.btcvelocity.api.cluster
Methods in com.btcvelocity.api.cluster that return types with arguments of type PlayerModifier and TypeMethodDescriptionClusterPlayer.toLocalPlayer()Attempts to resolve this cluster player to a localPlayerinstance on the current proxy. -
Uses of Player in com.btcvelocity.api.event.player
Methods in com.btcvelocity.api.event.player that return PlayerModifier and TypeMethodDescriptionTabCompleteRequestEvent.getPlayer()Returns the player requesting the tab completion.Constructors in com.btcvelocity.api.event.player with parameters of type PlayerModifierConstructorDescriptionTabCompleteRequestEvent(Player player, String partialMessage) Constructs a newTabCompleteRequestEvent. -
Uses of Player in com.btcvelocity.api.queue
Methods in com.btcvelocity.api.queue with parameters of type PlayerModifier and TypeMethodDescriptiondefault booleanReturnstrueif the given player is currently in this queue.default voidRemoves a player from the queue.voidAdds the given online player to this queue using their current permissions and priority.Queue.getPosition(@NotNull Player player) Returns the one-based position of the given player in the queue, orOptional.empty()if the player is not present.default @Nullable QueueQueueManager.getQueueFor(@NotNull Player player) Returns the queue the given player is currently in, ornullif the player is not queued in any queue.default booleanReturnstrueif the given player is present in any queue.voidQueueManager.queue(@NotNull Player player, @NotNull RegisteredServer server) Validates eligibility and adds the given player to the queue for the specified server.default voidQueueManager.removePlayerEntirely(@NotNull Player player) Immediately removes the given player from all queues they are currently in. -
Uses of Player in com.velocitypowered.api.event.command
Methods in com.velocitypowered.api.event.command that return PlayerModifier and TypeMethodDescriptionPlayerAvailableCommandsEvent.getPlayer()Gets the player that the available commands are being sent to.Constructors in com.velocitypowered.api.event.command with parameters of type PlayerModifierConstructorDescriptionPlayerAvailableCommandsEvent(Player player, com.mojang.brigadier.tree.RootCommandNode<?> rootNode) Constructs an available commands event. -
Uses of Player in com.velocitypowered.api.event.connection
Methods in com.velocitypowered.api.event.connection that return PlayerModifier and TypeMethodDescriptionDisconnectEvent.getPlayer()Returns the player who disconnected.LoginEvent.getPlayer()Returns the player who has completed authentication.PostLoginEvent.getPlayer()Gets the player who has logged in and is about to connect to their first server.PreTransferEvent.player()Returns the player attempting to transfer.Constructors in com.velocitypowered.api.event.connection with parameters of type PlayerModifierConstructorDescriptionDisconnectEvent(Player player, DisconnectEvent.LoginStatus loginStatus) Creates a newDisconnectEvent.LoginEvent(Player player) Deprecated, for removal: This API element is subject to removal in a future version.LoginEvent(Player player, @Nullable String serverIdHash) Constructs a newLoginEvent.PostLoginEvent(Player player) Constructs a new PostLoginEvent.PreTransferEvent(Player player, InetSocketAddress address) Constructs a new PreTransferEvent. -
Uses of Player in com.velocitypowered.api.event.player
Methods in com.velocitypowered.api.event.player that return PlayerModifier and TypeMethodDescriptionCookieReceiveEvent.getPlayer()Returns the player who sent the cookie response.CookieRequestEvent.getPlayer()Returns the player from whom the cookie is being requested.CookieStoreEvent.getPlayer()Returns the player who should store the cookie.@NonNull PlayerKickedFromServerEvent.getPlayer()The player who has been kicked out.PlayerChannelRegisterEvent.getPlayer()Gets the player who sent the plugin message to register channels.PlayerChannelUnregisterEvent.getPlayer()Gets thePlayerwho sent the unregister message.PlayerChatEvent.getPlayer()Gets the player who sent the chat message.PlayerChooseInitialServerEvent.getPlayer()Gets the player who is choosing the initial server.PlayerClientBrandEvent.getPlayer()Gets the player who sent the client brand.PlayerModInfoEvent.getPlayer()Returns the player who sent their mod list.PlayerResourcePackStatusEvent.getPlayer()Returns the player affected by the change in resource pack status.PlayerSettingsChangedEvent.getPlayer()Returns the player whose settings changed.ServerConnectedEvent.getPlayer()Returns the player involved in this event.ServerPostConnectEvent.getPlayer()Returns the player that has completed the connection to the server.ServerPreConnectEvent.getPlayer()Returns the player connecting to the server.TabCompleteEvent.getPlayer()Returns the player requesting the tab completion.TabCompleteRequestEvent.getPlayer()Returns the player requesting the tab completion.Constructors in com.velocitypowered.api.event.player with parameters of type PlayerModifierConstructorDescriptionCookieReceiveEvent(Player player, Key key, byte @Nullable [] data) Creates a new instance.CookieRequestEvent(Player player, Key key) Creates a new instance.CookieStoreEvent(Player player, Key key, byte[] data) Creates a new instance.KickedFromServerEvent(Player player, RegisteredServer server, @Nullable Component originalReason, boolean duringServerConnect, KickedFromServerEvent.ServerKickResult result) Creates aKickedFromServerEventinstance.PlayerChannelRegisterEvent(Player player, List<ChannelIdentifier> channels) Constructs a new PlayerChannelRegisterEvent.PlayerChannelUnregisterEvent(Player player, List<ChannelIdentifier> channels) Constructs a newPlayerChannelUnregisterEvent.PlayerChatEvent(Player player, String message) Constructs a PlayerChatEvent.PlayerChooseInitialServerEvent(Player player, @Nullable RegisteredServer initialServer) Constructs a PlayerChooseInitialServerEvent.PlayerClientBrandEvent(Player player, String brand) Creates a new instance.PlayerModInfoEvent(Player player, ModInfo modInfo) Constructs a newPlayerModInfoEvent.PlayerResourcePackStatusEvent(Player player, PlayerResourcePackStatusEvent.Status status) Deprecated.Use(Player, UUID, Status, ResourcePackInfo)instead.PlayerResourcePackStatusEvent(Player player, PlayerResourcePackStatusEvent.Status status, ResourcePackInfo packInfo) Deprecated.Use(Player, UUID, Status, ResourcePackInfo)instead.PlayerResourcePackStatusEvent(Player player, UUID packId, PlayerResourcePackStatusEvent.Status status, ResourcePackInfo packInfo) Instantiates this event.PlayerSettingsChangedEvent(Player player, PlayerSettings playerSettings) Constructs a new PlayerSettingsChangedEvent.ServerConnectedEvent(Player player, RegisteredServer server, @Nullable RegisteredServer previousServer) Constructs a ServerConnectedEvent.ServerPostConnectEvent(Player player, @Nullable RegisteredServer previousServer) Constructs a newServerPostConnectEvent.ServerPreConnectEvent(Player player, RegisteredServer originalServer) Creates the ServerPreConnectEvent.ServerPreConnectEvent(Player player, RegisteredServer originalServer, @Nullable RegisteredServer previousServer) Creates the ServerPreConnectEvent.TabCompleteEvent(Player player, String partialMessage, List<String> suggestions) Constructs a new TabCompleteEvent instance.TabCompleteRequestEvent(Player player, String partialMessage) Constructs a newTabCompleteRequestEvent. -
Uses of Player in com.velocitypowered.api.event.player.configuration
Methods in com.velocitypowered.api.event.player.configuration that return PlayerModifier and TypeMethodDescription@NotNull PlayerPlayerConfigurationEvent.player()Returns the value of theplayerrecord component.@NotNull PlayerPlayerEnterConfigurationEvent.player()Returns the value of theplayerrecord component.@NotNull PlayerPlayerEnteredConfigurationEvent.player()Returns the value of theplayerrecord component.@NotNull PlayerPlayerFinishConfigurationEvent.player()Returns the value of theplayerrecord component.@NotNull PlayerPlayerFinishedConfigurationEvent.player()Returns the value of theplayerrecord component.Constructors in com.velocitypowered.api.event.player.configuration with parameters of type PlayerModifierConstructorDescriptionPlayerConfigurationEvent(@NotNull Player player, ServerConnection server) Creates an instance of aPlayerConfigurationEventrecord class.PlayerEnterConfigurationEvent(@NotNull Player player, ServerConnection server) Creates an instance of aPlayerEnterConfigurationEventrecord class.PlayerEnteredConfigurationEvent(@NotNull Player player, ServerConnection server) Creates an instance of aPlayerEnteredConfigurationEventrecord class.PlayerFinishConfigurationEvent(@NotNull Player player, @NotNull ServerConnection server) Creates an instance of aPlayerFinishConfigurationEventrecord class.PlayerFinishedConfigurationEvent(@NotNull Player player, @NotNull ServerConnection server) Creates an instance of aPlayerFinishedConfigurationEventrecord class. -
Uses of Player in com.velocitypowered.api.proxy
Methods in com.velocitypowered.api.proxy that return PlayerModifier and TypeMethodDescriptionServerConnection.getPlayer()Returns the player that this connection is associated with.Methods in com.velocitypowered.api.proxy that return types with arguments of type PlayerModifier and TypeMethodDescriptionCollection<? extends Player> ProxyServer.getAllPlayers()Retrieves all players currently connected to this proxy.Retrieves the player currently connected to this proxy by their Minecraft username.Retrieves the player currently connected to this proxy by their Minecraft UUID.Collection<? extends Player> ProxyServer.matchPlayer(String partialName) Matches allPlayers whose names start with the provided partial name. -
Uses of Player in com.velocitypowered.api.proxy.server
Methods in com.velocitypowered.api.proxy.server that return types with arguments of type PlayerModifier and TypeMethodDescriptionCollection<? extends Player> RegisteredServer.getPlayersConnected()Returns a list of all the players currently connected to this server on this proxy.
LoginEvent(Player, String).