Enum Class PlotGroupDeletedEvent.Cause

java.lang.Object
java.lang.Enum<PlotGroupDeletedEvent.Cause>
com.palmergames.bukkit.towny.event.plot.group.PlotGroupDeletedEvent.Cause
All Implemented Interfaces:
Serializable, Comparable<PlotGroupDeletedEvent.Cause>, Constable
Enclosing class:
PlotGroupDeletedEvent

public static enum PlotGroupDeletedEvent.Cause extends Enum<PlotGroupDeletedEvent.Cause>
  • Enum Constant Details

    • UNKNOWN

      public static final PlotGroupDeletedEvent.Cause UNKNOWN
    • DELETED

      public static final PlotGroupDeletedEvent.Cause DELETED
      The plot group was deleted by a player via the /plot group delete command.
    • NO_TOWNBLOCKS

      public static final PlotGroupDeletedEvent.Cause NO_TOWNBLOCKS
      The plot group was deleted because all of its townblocks were removed. Not cancellable.
    • TOWN_DELETED

      public static final PlotGroupDeletedEvent.Cause TOWN_DELETED
      The plot group was deleted because the town it was in being deleted/ruined. Not cancellable.
  • Method Details

    • values

      public static PlotGroupDeletedEvent.Cause[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlotGroupDeletedEvent.Cause valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null