Class Team
java.lang.Object
studio.magemonkey.codex.mccore.scoreboard.Team
A team used by the Scoreboard Manager
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Team
Constructor with a team name
-
Team
Constructor with a team name, prefix and suffix
A null prefix or suffix will mean the team doesn't have one
- Parameters:
name- team nameprefix- team prefixsuffix- team suffix
-
-
Method Details
-
setPrefix
Sets the prefix for the team
Setting it to null will remove the prefix
If the prefix is longer than 16 characters, it will be truncated down to 16 characters
- Parameters:
prefix- new prefix
-
setSuffix
Sets the suffix for the team
Setting it to null will remove the suffix
If the suffix is longer than 16 characters, it will be truncated down to 16 characters
- Parameters:
suffix- new suffix
-
getName
- Returns:
- the team name
-
getPrefix
- Returns:
- the team's prefix or null if none
-
getSuffix
- Returns:
- the team's suffix or null if none
-
getId
public int getId()- Returns:
- ID assigned to the team
-