Search in sources :

Example 1 with PostPlotChangeOwnerEvent

use of com.plotsquared.core.events.post.PostPlotChangeOwnerEvent in project PlotSquared by IntellectualSites.

the class EventDispatcher method callPostOwnerChange.

public PostPlotChangeOwnerEvent callPostOwnerChange(PlotPlayer<?> player, Plot plot, @Nullable UUID oldOwner) {
    PostPlotChangeOwnerEvent event = new PostPlotChangeOwnerEvent(player, plot, oldOwner);
    callEvent(event);
    return event;
}
Also used : PostPlotChangeOwnerEvent(com.plotsquared.core.events.post.PostPlotChangeOwnerEvent)

Aggregations

PostPlotChangeOwnerEvent (com.plotsquared.core.events.post.PostPlotChangeOwnerEvent)1