Class DeleteNationEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.DeleteNationEvent
public class DeleteNationEvent
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
ConstructorDescriptionDeleteNationEvent
(Nation nation, Resident king, DeleteNationEvent.Cause cause, 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
-
DeleteNationEvent
public DeleteNationEvent(Nation nation, Resident king, DeleteNationEvent.Cause cause, org.bukkit.command.CommandSender sender)
-
-
Method Details
-
getNationName
- Returns:
- the deleted nation name.
-
getNationUUID
- Returns:
- the deleted nation uuid.
-
getNationCreated
public long getNationCreated()- Returns:
- deleted nation time of creation (in ms).
-
getLeaderUUID
- Returns:
- the deleted nation's leader's UUID, or
null
.
-
getLeader
- Returns:
- The deleted nation's leader's Resident object, 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()
-