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.