Class 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 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 interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable
      • getHandlers

        @NotNull
        public @NotNull org.bukkit.event.HandlerList getHandlers()
        Specified by:
        getHandlers in class org.bukkit.event.Event
      • getHandlerList

        public static org.bukkit.event.HandlerList getHandlerList()