Class DistrictAddEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.plot.district.DistrictAddEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
DistrictCreatedEvent

public class DistrictAddEvent extends CancellableTownyEvent
Called when a townblock is added into a district
  • Constructor Details

    • DistrictAddEvent

      public DistrictAddEvent(District district, TownBlock townBlock, org.bukkit.entity.Player player)
  • Method Details

    • getDistrict

      @NotNull public @NotNull District getDistrict()
    • getTownBlock

      @NotNull public @NotNull TownBlock getTownBlock()
    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
    • getHandlerList

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

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