Class DeleteTownEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.DeleteTownEvent
public class DeleteTownEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeleteTownEvent
(@NotNull Town town, @Nullable Resident mayor, @NotNull DeleteTownEvent.Cause cause, @Nullable org.bukkit.command.CommandSender sender) -
Method Summary
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
name
-
uuid
-
registered
protected final long registered
-
-
Constructor Details
-
DeleteTownEvent
public DeleteTownEvent(@NotNull @NotNull Town town, @Nullable @Nullable Resident mayor, @NotNull @NotNull DeleteTownEvent.Cause cause, @Nullable @Nullable org.bukkit.command.CommandSender sender)
-
-
Method Details
-
getTownName
- Returns:
- the deleted town name.
-
getTownUUID
- Returns:
- the deleted town uuid.
-
getTownCreated
public long getTownCreated()- Returns:
- the deleted town's time of creation (in epoch ms).
-
getMayorUUID
- Returns:
- the deleted town's mayor's UUID, or
null
.
-
getMayor
- Returns:
- The deleted town's mayor, or
null
.
-
getCause
-
getSender
@Nullable public @Nullable org.bukkit.command.CommandSender getSender()- Returns:
- The command sender who caused the deletion
-
getSenderResident
- Returns:
- The
getSender()
as a resident.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-