Class PartyLeaderChangeEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.party.PartyLeaderChangeEvent
Called when the leader of a party changes (promotion or leader leaving).
- Since:
- 1.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPartyLeaderChangeEvent(@NotNull ZentrixParty party, @NotNull UUID oldLeaderId, @NotNull UUID newLeaderId) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull UUIDGets the UUID of the new leader.@NotNull UUIDGets the UUID of the previous leader.@NotNull ZentrixPartygetParty()Gets the party whose leadership changed.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PartyLeaderChangeEvent
public PartyLeaderChangeEvent(@NotNull @NotNull ZentrixParty party, @NotNull @NotNull UUID oldLeaderId, @NotNull @NotNull UUID newLeaderId)
-
-
Method Details
-
getParty
Gets the party whose leadership changed.- Returns:
- The party
-
getOldLeaderId
Gets the UUID of the previous leader.- Returns:
- The old leader's UUID
-
getNewLeaderId
Gets the UUID of the new leader.- Returns:
- The new leader's UUID
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-