Package com.plotsquared.core.events.post
Class PostPlotChangeOwnerEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotPlayerEvent
com.plotsquared.core.events.post.PostPlotChangeOwnerEvent
Called after the owner of a plot was updated.
- Since:
- 6.2.0
-
Constructor Summary
ConstructorDescriptionPostPlotChangeOwnerEvent
(PlotPlayer<?> initiator, Plot plot, @Nullable UUID oldOwner) Instantiate a new PlotChangedOwnerEvent. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Methods inherited from class com.plotsquared.core.events.PlotPlayerEvent
getPlotPlayer
Methods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
-
Constructor Details
-
PostPlotChangeOwnerEvent
Instantiate a new PlotChangedOwnerEvent.- Parameters:
initiator
- The player who executed the owner change.plot
- The plot which owner was changed.oldOwner
- The previous owner - if present, otherwisenull
.
-
-
Method Details
-
getOldOwner
- Returns:
- the old owner of the plot - if present, otherwise
null
.
-
hasOldOwner
- Returns:
true
if the plot had an owner,false
otherwise.- See Also:
-
hasNewOwner
- Returns:
true
if the plot now has an owner,false
otherwise.- See Also:
-