Schnittstelle PartyEventListenerInterface


public interface PartyEventListenerInterface
The interface to receive party events. Please register your listener with PartyEventManager.registerPartyEventListener(PartyEventListenerInterface)
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onLeftParty(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer, @Nullable PlayerParty pParty)
    This method will only be called if a party member or the person who left the party, is currently on this spigot server.
    void
    onPartyCreated(@Nullable PlayerParty pParty)
    This method will only be called if a party member, is currently on this spigot server.
    void
    onPartyJoin(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer, @Nullable PlayerParty pParty)
    This method will only be called if a party member, is currently on this spigot server.
    void
    onPartyLeaderChanged(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pNewLeader, @Nullable PlayerParty pParty)
    This method will only be called if a party member, is currently on this spigot server.
  • Methodendetails

    • onLeftParty

      void onLeftParty(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer, @Nullable @Nullable PlayerParty pParty)
      This method will only be called if a party member or the person who left the party, is currently on this spigot server. Please note that this method is called in an async thread.
      Parameter:
      pPlayer - The player who left the party
      pParty - The party the player left. If they were the last player or the player deleted the party while this event was being bridged to the spigot server, then the party might be null.
    • onPartyCreated

      void onPartyCreated(@Nullable @Nullable PlayerParty pParty)
      This method will only be called if a party member, is currently on this spigot server. Please note that this method is called in an async thread.
      Parameter:
      pParty - The party that was created. If the player deleted the party while this event was being bridged to the spigot server, then the party might be null.
    • onPartyJoin

      void onPartyJoin(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer, @Nullable @Nullable PlayerParty pParty)
      This method will only be called if a party member, is currently on this spigot server. Please note that this method is called in an async thread.
      Parameter:
      pPlayer - The player who joined the party
      pParty - The party the player joined. If the player deleted the party while this event was being bridged to the spigot server, then the party might be null.
    • onPartyLeaderChanged

      void onPartyLeaderChanged(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pNewLeader, @Nullable @Nullable PlayerParty pParty)
      This method will only be called if a party member, is currently on this spigot server. Please note that this method is called in an async thread.
      Parameter:
      pNewLeader - The new leader of the party
      pParty - The party the leader changed for. If the player deleted the party while this event was being bridged to the spigot server, then the party might be null.