Class TownToggleMobsEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class TownToggleMobsEvent extends TownToggleEvent
  • Constructor Details

    • TownToggleMobsEvent

      public TownToggleMobsEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState)
  • Method Details

    • getCurrentState

      public boolean getCurrentState()
      Returns:
      the current toggle's state.
    • getFutureState

      public boolean getFutureState()
      Returns:
      the future state of the toggle after the event.