Class PartyAPI


  • public class PartyAPI
    extends java.lang.Object
    The APIs for the party system of Party and Friends
    • Field Detail

      • LEADER_PERMISSION_HEIGHT

        public static final int LEADER_PERMISSION_HEIGHT
        See Also:
        Constant Field Values
      • PARTY_MEMBER_PERMISSION_HEIGHT

        public static final int PARTY_MEMBER_PERMISSION_HEIGHT
        See Also:
        Constant Field Values
      • NO_PARTY_PERMISSION_HEIGHT

        public static final int NO_PARTY_PERMISSION_HEIGHT
        See Also:
        Constant Field Values
    • Constructor Detail

      • PartyAPI

        public PartyAPI()
    • Method Detail

      • getParty

        public static PlayerParty getParty​(OnlinePAFPlayer player)
        Returns the party, if the given player is in a party or null if he is not in a party
        Parameters:
        player - The player
        Returns:
        Returns the party, if the given player is in a party or null if he is not in a party