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
Event that is triggered before a warp is required to rent.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerWarpRentEvent
(Warp playerWarp, WarpRentType rentType, double price) This event is triggered before a warp is required to rent. -
Method Summary
Methods inherited from class com.olziedev.playerwarps.api.events.WarpEvent
acceptCallback, callEvent, getPlayerWarpsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerWarpRentEvent
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayerWarp
- Returns:
- The warp instance that will pay the rent.
-
getRentType
- Returns:
- The type that this rent will have.
-
getPrice
public double getPrice()- Returns:
- The price of the rent.
-