Class PlayerChannelRegisterEvent

java.lang.Object
com.velocitypowered.api.event.player.PlayerChannelRegisterEvent

public final class PlayerChannelRegisterEvent extends Object
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 Details

    • PlayerChannelRegisterEvent

      public PlayerChannelRegisterEvent(Player player, List<ChannelIdentifier> channels)
      Constructs a new PlayerChannelRegisterEvent.
      Parameters:
      player - the player who sent the plugin message
      channels - the list of channels the player is registering
  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who sent the plugin message to register channels.
      Returns:
      the player involved in this event
    • getChannels

      public List<ChannelIdentifier> getChannels()
      Gets the list of ChannelIdentifiers that the player registered.
      Returns:
      the list of registered channels
    • toString

      public String toString()
      Overrides:
      toString in class Object