Schnittstelle PartyEventListenerInterface
public interface PartyEventListenerInterface
The interface to receive party events. Please register your listener with
PartyEventManager.registerPartyEventListener(PartyEventListenerInterface)
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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 partypParty
- 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
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 partypParty
- 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 partypParty
- 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.
-