Class PlayerWarpSponsorEvent

java.lang.Object
org.bukkit.event.Event
com.olziedev.playerwarps.api.events.WarpEvent
com.olziedev.playerwarps.api.events.warp.PlayerWarpSponsorEvent
All Implemented Interfaces:
Cancellable

public class PlayerWarpSponsorEvent extends WarpEvent
Event that is triggered before a warp has claimed a sponsored slot.
  • Constructor Details

    • PlayerWarpSponsorEvent

      public PlayerWarpSponsorEvent(Warp playerWarp, String sponsorID, Player player, double price, ItemStack itemStack)
      This event is triggered before a warp has claimed a sponsored slot.
      Parameters:
      playerWarp - The warp instance that is going to claim the sponsor slot.
      sponsorID - The sponsor ID that is going to be claimed.
      player - The player that is claiming the sponsor slot.
      price - The price the player will pay for the sponsor.
      itemStack - The item that the player will pay for the sponsor.
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getPlayerWarp

      public Warp getPlayerWarp()
      Returns:
      The warp instance that is going to claim the sponsor slot.
    • getSponsorID

      public String getSponsorID()
      Returns:
      The sponsor ID that is going to be claimed.
    • getPlayer

      public Player getPlayer()
      Returns:
      The player that is claiming the sponsor slot.
    • getPrice

      public double getPrice()
      Returns:
      The price the player will pay for the sponsor.
    • getItemStack

      public ItemStack getItemStack()
      Returns:
      The item that the player will pay for the sponsor.