Package dev.majek.pc.api
Class PartyJoinEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- dev.majek.pc.api.PartyJoinEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PartyJoinEvent extends org.bukkit.event.Event implements org.bukkit.event.CancellableHandles the event fired when a player joins a party.
-
-
Constructor Summary
Constructors Constructor Description PartyJoinEvent(org.bukkit.entity.Player player, Party party)Fires when an in-game player joins an existing party.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.bukkit.event.HandlerListgetHandlerList()@NotNull org.bukkit.event.HandlerListgetHandlers()PartygetParty()Get the party the player is joining.org.bukkit.entity.PlayergetPlayer()Get the player who is joining the party.booleanisCancelled()voidsetCancelled(boolean cancel)
-
-
-
Constructor Detail
-
PartyJoinEvent
public PartyJoinEvent(org.bukkit.entity.Player player, Party party)Fires when an in-game player joins an existing party.- Parameters:
player- The player joining the party.party- The party the player is joining.
-
-
Method Detail
-
getPlayer
public org.bukkit.entity.Player getPlayer()
Get the player who is joining the party.- Returns:
- Joining player.
-
getParty
public Party getParty()
Get the party the player is joining.- Returns:
- Party player is joining.
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-
-