Class CookieReceiveEvent

java.lang.Object
com.velocitypowered.api.event.player.CookieReceiveEvent
All Implemented Interfaces:
ResultedEvent<CookieReceiveEvent.ForwardResult>

@AwaitingEvent public final class CookieReceiveEvent extends Object implements ResultedEvent<CookieReceiveEvent.ForwardResult>
This event is fired when a cookie response from a client is received by the proxy. This usually happens after either a proxy plugin or a backend server requested a cookie. Velocity will wait on this event to finish firing before discarding the received cookie (if handled) or forwarding it to the backend server.
  • Constructor Details

    • CookieReceiveEvent

      public CookieReceiveEvent(Player player, Key key, byte @Nullable [] data)
      Creates a new instance.
      Parameters:
      player - the player who sent the cookie response
      key - the identifier of the cookie
      data - the data of the cookie
  • Method Details