Class TeamMemberAddEvent
java.lang.Object
org.bukkit.event.Event
net.mathias2246.buildmc.api.event.CustomEvent
net.mathias2246.buildmc.api.event.team.TeamEvent
net.mathias2246.buildmc.api.event.team.TeamMemberEvent
net.mathias2246.buildmc.api.event.team.TeamMemberAddEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
An event that is fired before a member is added to a
Team.
This event can be optionally marked as cancellable.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class CustomEvent
metadataHolder -
Constructor Summary
ConstructorsConstructorDescriptionTeamMemberAddEvent(@NotNull UUID memberId, @NotNull Team team, boolean cancellable) The base constructor forTeamMemberAddEvents. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListReturns theHandlerListfor this event type.booleanvoidsetCancelled(boolean cancel) Methods inherited from class TeamMemberEvent
getMemberIdMethods inherited from class TeamEvent
getTeam, getTeamManagerMethods inherited from class CustomEvent
getMetadata, putMetadata, removeMetadataMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
TeamMemberAddEvent
public TeamMemberAddEvent(@NotNull @NotNull UUID memberId, @NotNull @NotNull Team team, boolean cancellable) The base constructor forTeamMemberAddEvents.
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:CustomEventReturns theHandlerListfor this event type.Bukkit requires each concrete event class to define its own static
HandlerListinstance and to return it from this method. This is necessary for Bukkitâs event registration and dispatch system.- Specified by:
getHandlersin classCustomEvent- Returns:
- the handler list for this event (never
null)
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-