public class ReportTeam extends Object
Constructor and Description |
---|
ReportTeam(String name,
org.bukkit.ChatColor color,
Iterable<org.bukkit.OfflinePlayer> players)
Creates a team with a name, a color and some players.
|
ReportTeam(String name,
org.bukkit.ChatColor color,
org.bukkit.OfflinePlayer... players)
Creates a team with a name, a color and some players.
|
ReportTeam(String name,
Iterable<org.bukkit.OfflinePlayer> players)
Creates a uncolored team with a name and some players.
|
ReportTeam(String name,
org.bukkit.OfflinePlayer... players)
Creates a uncolored team with a name and some players.
|
Modifier and Type | Method and Description |
---|---|
static ReportTeam |
fromScoreboardTeam(org.bukkit.scoreboard.Team team)
Converts a Scoreboard team to a Hawk team.
|
org.bukkit.ChatColor |
getColor() |
String |
getName() |
Set<UUID> |
getPlayers() |
com.google.gson.JsonObject |
toJSON() |
public ReportTeam(String name, org.bukkit.ChatColor color, org.bukkit.OfflinePlayer... players)
name
- The team's name.color
- The team's color.players
- The players.public ReportTeam(String name, org.bukkit.ChatColor color, Iterable<org.bukkit.OfflinePlayer> players)
name
- The team's name.color
- The team's color.players
- The players.public ReportTeam(String name, org.bukkit.OfflinePlayer... players)
name
- The team's name.players
- The players.public static ReportTeam fromScoreboardTeam(org.bukkit.scoreboard.Team team)
The team color will be extracted from the team name formatting (if any).
team
- The scoreboard team.public String getName()
public org.bukkit.ChatColor getColor()
public com.google.gson.JsonObject toJSON()
Copyright © 2021. All rights reserved.