Package com.plotsquared.core.events.post
Class PostPlayerBuyPlotEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotPlayerEvent
com.plotsquared.core.events.post.PostPlayerBuyPlotEvent
Called after a player has successfully bought a plot.
- Since:
- 7.3.2
-
Constructor Summary
ConstructorsConstructorDescriptionPostPlayerBuyPlotEvent(PlotPlayer<?> plotPlayer, OfflinePlotPlayer previousOwner, Plot plot, @org.checkerframework.checker.index.qual.NonNegative double price) -
Method Summary
Modifier and TypeMethodDescriptionThe previous owner of the bought plot.doubleprice()Returns the price after potential modifications byPlayerBuyPlotEvent.Methods inherited from class com.plotsquared.core.events.PlotPlayerEvent
getPlotPlayerMethods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
-
Constructor Details
-
PostPlayerBuyPlotEvent
public PostPlayerBuyPlotEvent(PlotPlayer<?> plotPlayer, OfflinePlotPlayer previousOwner, Plot plot, @org.checkerframework.checker.index.qual.NonNegative double price)
-
-
Method Details
-
previousOwner
The previous owner of the bought plot.- Returns:
- the previous owner.
-
price
Returns the price after potential modifications byPlayerBuyPlotEvent.- Returns:
- the price the player had to pay to buy the plot.
-