Package net.craftions.api.game
Class Team
- java.lang.Object
-
- net.craftions.api.game.Team
-
public class Team extends Object
This class is used for teams in round-based games.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlayer(org.bukkit.entity.Player p)Adds a player to the team.StringgetColor()StringgetName()ArrayList<org.bukkit.entity.Player>getPlayers()org.bukkit.LocationgetSpawn()voidsetSpawn(org.bukkit.Location spawn)
-
-
-
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.
-
-