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
Event that is triggered before a warp has claimed a sponsored slot.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerWarpSponsorEvent
(Warp playerWarp, String sponsorID, Player player, double price, ItemStack itemStack) This event is triggered before a warp has claimed a sponsored slot. -
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
-
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayerWarp
- Returns:
- The warp instance that is going to claim the sponsor slot.
-
getSponsorID
- Returns:
- The sponsor ID that is going to be claimed.
-
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
- Returns:
- The item that the player will pay for the sponsor.
-