Class PlotChangeOwnerEvent

java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotChangeOwnerEvent
All Implemented Interfaces:
CancellablePlotEvent

public class PlotChangeOwnerEvent extends PlotEvent implements CancellablePlotEvent
  • Constructor Details

    • PlotChangeOwnerEvent

      public PlotChangeOwnerEvent(PlotPlayer<?> initiator, Plot plot, @Nullable UUID oldOwner, @Nullable UUID newOwner, boolean hasOldOwner)
      PlotChangeOwnerEvent: Called when a plot's owner is change.
      Parameters:
      initiator - The player attempting to set the plot's owner
      plot - The plot having its owner changed
      oldOwner - The old owner of the plot or null
      newOwner - The new owner of the plot or null
      hasOldOwner - If the plot has an old owner
  • Method Details