CoreTeam
public interface Team
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.
|
java.lang.String getName()
java.lang.String getPrefix()
void setPrefix(java.lang.String prefix)
prefix
- the new prefix of the teamjava.lang.String getSuffix()
void setSuffix(java.lang.String suffix)
suffix
- the new suffix of the teamorg.bukkit.ChatColor getColor()
void setColor(org.bukkit.ChatColor color)
color
- the new color of the teamint getAmount()
void setAmount(int amount)
amount
- the new amount the team can holdvoid addPlayer(GamePlayer player)
player
- the GamePlayer to addvoid removePlayer(GamePlayer player)
player
- the GamePlayer to removejava.util.List<GamePlayer> getPlayers()
int getScore()
void setScore(int score)
score
- the new score of the teamvoid incrementScore(int increment)
increment
- the amount to increase byvoid decrementScore(int decrement)
decrement
- the amount to decrease by