Class GangJoinEvent
java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.shared.events.XPrisonEvent
dev.drawethree.xprison.api.shared.events.player.XPrisonPlayerEvent
dev.drawethree.xprison.api.gangs.events.GangJoinEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event that is fired when a player joins a gang.
This event is Cancellable
, allowing plugins to prevent the player from joining.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionGangJoinEvent
(org.bukkit.OfflinePlayer player, Gang gang) Constructs a newGangJoinEvent
. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Gets the static handler list for this event.org.bukkit.event.HandlerList
Gets the list of handlers for this event instance.boolean
Checks whether the event has been cancelled.void
setCancelled
(boolean cancel) Sets whether the event should be cancelled.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
GangJoinEvent
Constructs a newGangJoinEvent
.- Parameters:
player
- theOfflinePlayer
who joined the ganggang
- theGang
being joined
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Gets the static handler list for this event.- Returns:
- the
HandlerList
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Gets the list of handlers for this event instance.- Specified by:
getHandlers
in classorg.bukkit.event.Event
- Returns:
- the
HandlerList
-
isCancelled
public boolean isCancelled()Checks whether the event has been cancelled.- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
- Returns:
true
if cancelled,false
otherwise
-
setCancelled
public void setCancelled(boolean cancel) Sets whether the event should be cancelled.- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Parameters:
cancel
-true
to cancel the event
-