Constructor | Description |
---|---|
CoreTeam(java.lang.String name,
Arena arena) |
Modifier and Type | Method | Description |
---|---|---|
void |
addPlayer(GamePlayer player) |
Adds a player to the team.
|
void |
decrementScore(int decrement) |
Decreases the score of the team by a certain amount.
|
int |
getAmount() |
Gets the player limit for the team
|
org.bukkit.ChatColor |
getColor() |
Gets the color of the team.
|
java.lang.String |
getName() |
Gets the name of the team.
|
java.util.List<GamePlayer> |
getPlayers() |
Gets the list of players associated with the team.
|
java.lang.String |
getPrefix() |
Gets the prefix of the team.
|
int |
getScore() |
Gets the score of the team.
|
java.lang.String |
getSuffix() |
Gets the suffix of the team.
|
void |
incrementScore(int increment) |
Increases the score of the team by a certain amount.
|
void |
removePlayer(GamePlayer player) |
Removes a player from the team.
|
void |
setAmount(int amount) |
Sets the player limit for the team
|
void |
setColor(org.bukkit.ChatColor color) |
Sets the color of the team.
|
void |
setPrefix(java.lang.String prefix) |
Sets the prefix of the team.
|
void |
setScore(int score) |
Sets the score of the team to a specific value.
|
void |
setSuffix(java.lang.String suffix) |
Sets the suffix of the team.
|
public CoreTeam(java.lang.String name, Arena arena)
public java.lang.String getName()
Team
public java.lang.String getPrefix()
Team
public void setPrefix(java.lang.String prefix)
Team
public java.lang.String getSuffix()
Team
public void setSuffix(java.lang.String suffix)
Team
public org.bukkit.ChatColor getColor()
Team
public void setColor(org.bukkit.ChatColor color)
Team
public void setAmount(int amount)
Team
public int getAmount()
Team
public void addPlayer(GamePlayer player)
Team
public void removePlayer(GamePlayer player)
Team
removePlayer
in interface Team
player
- the GamePlayer to removepublic java.util.List<GamePlayer> getPlayers()
Team
getPlayers
in interface Team
public int getScore()
Team
public void setScore(int score)
Team
public void incrementScore(int increment)
Team
incrementScore
in interface Team
increment
- the amount to increase bypublic void decrementScore(int decrement)
Team
decrementScore
in interface Team
decrement
- the amount to decrease by