java.lang.Object
de.simonsator.partyandfriends.spigot.api.party.PlayerParty

public abstract class PlayerParty extends Object
Represents a party with players
Autor:
Simonsator
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    List<de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer>
    Returns all players in this party (including the party leader).
    abstract de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer
    Returns the party leader
    abstract List<de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer>
    Returns a list of all the players in this party who are not the party leader.
    abstract boolean
    isAMember(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer)
    Returns true if the player is a member of the party.
    boolean
    isInParty(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer)
    Returns true if the player is in the party.
    boolean
    isInvited(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer)
    Returns true if the player is already invited.
    boolean
    isLeader(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer player)
    Returns true if the given player is the leader of this party, and false if he is not the leader, of this party
    boolean
    Returns true if currently nobody is invited into the party.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Methodendetails

    • isAMember

      public abstract boolean isAMember(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer)
      Returns true if the player is a member of the party. Returns false if the player is not part of this party or if the player is the party leader.
      Parameter:
      pPlayer - The player
      Gibt zurück:
      Returns true if the player is a member of the party. Returns false if the player is not part of this party or if the player is the party leader.
    • getLeader

      public abstract de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer getLeader()
      Returns the party leader
      Gibt zurück:
      Returns the party leader
    • getPlayers

      public abstract List<de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer> getPlayers()
      Returns a list of all the players in this party who are not the party leader.
      Gibt zurück:
      Returns a list of all the players in this party who are not the party leader.
    • isNobodyInvited

      public boolean isNobodyInvited()
      Returns true if currently nobody is invited into the party. Returns false if at least one person invited into this party.
      Gibt zurück:
      Returns true if currently nobody is invited into the party. Returns false if at least one person invited into this party.
    • getAllPlayers

      public List<de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer> getAllPlayers()
      Returns all players in this party (including the party leader).
      Gibt zurück:
      Returns all players in this party (including the party leader).
    • isInParty

      public boolean isInParty(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer)
      Returns true if the player is in the party. Returns false if the player is not in the party.
      Parameter:
      pPlayer - The player
      Gibt zurück:
      Returns true if the player is in the party. Returns false if the player is not in the party.
    • isLeader

      public boolean isLeader(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer player)
      Returns true if the given player is the leader of this party, and false if he is not the leader, of this party
      Parameter:
      player - The player
      Gibt zurück:
      Returns true if the given player is the leader of this party, and false if he is not the leader, of this party
    • isInvited

      public boolean isInvited(de.simonsator.partyandfriends.spigot.api.pafplayers.PAFPlayer pPlayer)
      Returns true if the player is already invited. Returns false if the player is not invited
      Parameter:
      pPlayer - The player
      Gibt zurück:
      Returns true if the player is already invited. Returns false if the player is not invited.