Class PlayerWarpRentEvent

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

public class PlayerWarpRentEvent extends WarpEvent
Event that is triggered before a warp is required to rent.
  • Constructor Details

    • PlayerWarpRentEvent

      public PlayerWarpRentEvent(Warp playerWarp, WarpRentType rentType, double price)
      This event is triggered before a warp is required to rent.
      Parameters:
      playerWarp - The warp instance that will pay the rent.
      rentType - The type that this rent will have.
      price - The price of the rent.
  • 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 will pay the rent.
    • getRentType

      public WarpRentType getRentType()
      Returns:
      The type that this rent will have.
    • getPrice

      public double getPrice()
      Returns:
      The price of the rent.