Class TownToggleUnknownEvent

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

public class TownToggleUnknownEvent extends TownToggleEvent
  • Constructor Details

    • TownToggleUnknownEvent

      public TownToggleUnknownEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, String[] args)
      An event to be used by other plugins to simulate a /nation toggle {arguments} command.
      Parameters:
      sender - CommandSender which has sent the commant.
      town - Town being toggled.
      args - String[] Subcommands following the /nation toggle portion of the command.
      admin - boolean whether this was sent by the console or someone with townyadmin priviledges
  • Method Details

    • getArgs

      public String[] getArgs()
      Returns:
      args a String[] representing the words following the /town toggle command which fired this event.