Class PlayerChannelUnregisterEvent

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

public final class PlayerChannelUnregisterEvent extends Object
This event is fired when a client (Player) sends a plugin message through the unregister channel. Velocity will not wait on this event to finish firing.
  • Constructor Details

  • Method Details

    • getPlayer

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

      public List<ChannelIdentifier> getChannels()
      Gets the list of ChannelIdentifiers that the player has unregistered.

      These identifiers correspond to the plugin message channels that the client has indicated it will no longer use.

      Returns:
      the list of unregistered channels
    • toString

      public String toString()
      Overrides:
      toString in class Object