Class TownToggleUnknownEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.town.toggle.TownToggleEvent
com.palmergames.bukkit.towny.event.town.toggle.TownToggleUnknownEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownToggleUnknownEvent
(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. -
Method Summary
Methods inherited from class com.palmergames.bukkit.towny.event.town.toggle.TownToggleEvent
getHandlerList, getHandlers, getPlayer, getResident, getSender, getTown, isAdminAction
Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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
- Returns:
- args a String[] representing the words following the /town toggle command which fired this event.
-