Class PostPlotChangeOwnerEvent


Called after the owner of a plot was updated.
Since:
6.2.0
  • Constructor Details

    • PostPlotChangeOwnerEvent

      public PostPlotChangeOwnerEvent(PlotPlayer<?> initiator, Plot plot, @Nullable UUID oldOwner)
      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, otherwise null.
  • Method Details

    • getOldOwner

      Returns:
      the old owner of the plot - if present, otherwise null.
    • hasOldOwner

      public boolean hasOldOwner()
      Returns:
      true if the plot had an owner, false otherwise.
      See Also:
    • hasNewOwner

      public boolean hasNewOwner()
      Returns:
      true if the plot now has an owner, false otherwise.
      See Also: