Class TownTogglePublicEvent

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

public class TownTogglePublicEvent extends TownToggleEvent
  • Constructor Details

    • TownTogglePublicEvent

      public TownTogglePublicEvent(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.