Class ServerResourcePackRemoveEvent

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

@AwaitingEvent public class ServerResourcePackRemoveEvent extends Object implements ResultedEvent<ResultedEvent.GenericResult>
This event is fired when the downstream server tries to remove a resource pack from player or clear all of them. The proxy will wait on this event to finish before forwarding the action to the user. If this event is denied, no resource packs will be removed from player.
  • Constructor Details

    • ServerResourcePackRemoveEvent

      public ServerResourcePackRemoveEvent(UUID packId, ServerConnection serverConnection)
      Instantiates this event.
  • Method Details