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.Cancellable
Handles 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.HandlerList
getHandlerList()
@NotNull org.bukkit.event.HandlerList
getHandlers()
Party
getParty()
Get the party the player is joining.org.bukkit.entity.Player
getPlayer()
Get the player who is joining the party.boolean
isCancelled()
void
setCancelled(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:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
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()
-
-