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
ConstructorsConstructorDescriptionPostPlotChangeOwnerEvent(PlotPlayer<?> initiator, Plot plot, @Nullable UUID oldOwner) Instantiate a new PlotChangedOwnerEvent. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanMethods inherited from class com.plotsquared.core.events.PlotPlayerEvent
getPlotPlayerMethods 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
public boolean hasOldOwner()- Returns:
trueif the plot had an owner,falseotherwise.- See Also:
-
hasNewOwner
public boolean hasNewOwner()- Returns:
trueif the plot now has an owner,falseotherwise.- See Also:
-