Class Team

java.lang.Object
net.fateuhc.plugin.team.Team

public class Team extends Object
The data that is kept for a team.
  • Constructor Details

    • Team

      public Team()
  • Method Details

    • getOwner

      public org.bukkit.entity.Player getOwner()
      Get the owner of the team.
      Returns:
      Player instance of the owner
    • getMembers

      public List<UUID> getMembers()
      Get the uuid of the members of the party.
      Returns:
      List of UUID
    • getPlayerParties

      public Map<UUID,Team> getPlayerParties()
      Get the player parties.
      Returns:
      Map of UUID and Team
    • getId

      public int getId()
      Get the ID of the team.
      Returns:
      Integer
    • getKills

      public int getKills()
      Get the amount of kills the team has.
      Returns:
      Integer
    • getTeamInv

      public org.bukkit.inventory.Inventory getTeamInv()
      Get the shared team inventory.
      Returns:
      Inventory
    • getScatterLocation

      public org.bukkit.Location getScatterLocation()
      Get the scatter location for the team.
      Returns:
      Location
    • setScatterLocation

      public void setScatterLocation(org.bukkit.Location location)
      Set the scatter location for the team.
      Parameters:
      location - The location the team will scatter in.
    • getChatColor

      public org.bukkit.ChatColor getChatColor()
      Get the team's chat colour.
      Returns:
      ChatColor
    • getFormatting

      public String getFormatting()
      Get the formatting for the team.
      Returns:
      String
    • isAlive

      public boolean isAlive()
      Is the team still alive?
      Returns:
      Boolean
    • increaseKills

      public void increaseKills()
      Increase the amount of kills the team has.
    • getOnlinePlayers

      public List<UUID> getOnlinePlayers()
      Get a list of the online players.
      Returns:
      List of UUIDs.
    • getOnlineMembers

      public List<org.bukkit.entity.Player> getOnlineMembers()
      Get a list of the online players.
      Returns:
      List of Players
    • sendTeamMessage

      public void sendTeamMessage(String message, boolean usePrefix)
      Send a message to the team.
      Parameters:
      message - The message you wish to send.
      usePrefix - Should the prefix be added on?
    • isFull

      public boolean isFull()
      Is the team full?
      Returns:
      Boolean