Class PlotPreChangeTypeEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.PlotPreChangeTypeEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlotPreChangeTypeEvent extends CancellableTownyEvent
  • Constructor Details

    • PlotPreChangeTypeEvent

      public PlotPreChangeTypeEvent(TownBlockType newType, TownBlock townBlock, Resident resident)
      Changes a plot's TownBlockType
      Parameters:
      newType - - New Type
      townBlock - - Plot to target
      resident - - The resident who led to this event
  • Method Details

    • getNewType

      public TownBlockType getNewType()
    • getOldType

      public TownBlockType getOldType()
    • getTownBlock

      public TownBlock getTownBlock()
    • getResident

      public Resident getResident()
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event