Class PlayerClaimPlotEvent

All Implemented Interfaces:
CancellablePlotEvent

public class PlayerClaimPlotEvent extends PlotPlayerEvent implements CancellablePlotEvent
  • Constructor Details

    • PlayerClaimPlotEvent

      public PlayerClaimPlotEvent(PlotPlayer<?> player, Plot plot, @Nullable String schematic)
      PlayerClaimPlotEvent: Called when a plot is claimed.
      Parameters:
      player - Player that claimed the plot
      plot - Plot that was claimed
      schematic - The schematic defined or null
  • Method Details

    • getSchematic

      public @Nullable String getSchematic()
      Obtain the schematic string as used by the Claim command or null.
      Returns:
      schematic string
    • setSchematic

      public void setSchematic(String schematic)
      Set the schematic string used in the claim.
      Parameters:
      schematic - the schematic name
    • getEventResult

      public Result getEventResult()
      Specified by:
      getEventResult in interface CancellablePlotEvent
    • setEventResult

      public void setEventResult(Result e)
      Specified by:
      setEventResult in interface CancellablePlotEvent