Class CookieStoreEvent

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

@AwaitingEvent public final class CookieStoreEvent extends Object implements ResultedEvent<CookieStoreEvent.ForwardResult>
This event is fired when a cookie should be stored on a player's client. This process can be initiated either by a proxy plugin or by a backend server. Velocity will wait on this event to finish firing before discarding the cookie (if handled) or forwarding it to the client so that it can store the cookie.
  • Constructor Details

    • CookieStoreEvent

      public CookieStoreEvent(Player player, Key key, byte[] data)
      Creates a new instance.
      Parameters:
      player - the player who should store the cookie
      key - the identifier of the cookie
      data - the data of the cookie
  • Method Details