Class Team


  • public class Team
    extends Object
    This class is used for teams in round-based games.
    • Constructor Detail

      • Team

        public Team​(String name,
                    String color)
        Parameters:
        name - The name of the team.
        color - The color code used for the team.
    • Method Detail

      • getColor

        public String getColor()
        Returns:
        The color code used for the team.
      • getName

        public String getName()
        Returns:
        The name of the team.
      • addPlayer

        public void addPlayer​(org.bukkit.entity.Player p)
        Adds a player to the team.
      • getPlayers

        public ArrayList<org.bukkit.entity.Player> getPlayers()
        Returns:
        All players in the team.
      • getSpawn

        public org.bukkit.Location getSpawn()
        Returns:
        The spawn of the team.
      • setSpawn

        public void setSpawn​(org.bukkit.Location spawn)
        Parameters:
        spawn - The new spawn.