Class PlayerChannelRegisterEvent
java.lang.Object
com.velocitypowered.api.event.player.PlayerChannelRegisterEvent
This event is fired when a client (
Player) sends a plugin message through the
register channel. Velocity will not wait on this event to finish firing.-
Constructor Summary
ConstructorsConstructorDescriptionPlayerChannelRegisterEvent(Player player, List<ChannelIdentifier> channels) Constructs a new PlayerChannelRegisterEvent. -
Method Summary
Modifier and TypeMethodDescriptionGets the list ofChannelIdentifiers that the player registered.Gets the player who sent the plugin message to register channels.toString()
-
Constructor Details
-
PlayerChannelRegisterEvent
Constructs a new PlayerChannelRegisterEvent.- Parameters:
player- the player who sent the plugin messagechannels- the list of channels the player is registering
-
-
Method Details
-
getPlayer
Gets the player who sent the plugin message to register channels.- Returns:
- the player involved in this event
-
getChannels
Gets the list ofChannelIdentifiers that the player registered.- Returns:
- the list of registered channels
-
toString
-