| 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()
Teampublic java.lang.String getPrefix()
Teampublic void setPrefix(java.lang.String prefix)
Teampublic java.lang.String getSuffix()
Teampublic void setSuffix(java.lang.String suffix)
Teampublic org.bukkit.ChatColor getColor()
Teampublic void setColor(org.bukkit.ChatColor color)
Teampublic void setAmount(int amount)
Teampublic int getAmount()
Teampublic void addPlayer(GamePlayer player)
Teampublic void removePlayer(GamePlayer player)
TeamremovePlayer in interface Teamplayer - the GamePlayer to removepublic java.util.List<GamePlayer> getPlayers()
TeamgetPlayers in interface Teampublic int getScore()
Teampublic void setScore(int score)
Teampublic void incrementScore(int increment)
TeamincrementScore in interface Teamincrement - the amount to increase bypublic void decrementScore(int decrement)
TeamdecrementScore in interface Teamdecrement - the amount to decrease by