13
0
Dieser Commit ist enthalten in:
Lixfel 2020-11-02 18:12:26 +01:00
Ursprung 9731b656b3
Commit 4bd4cdc510

Datei anzeigen

@ -41,9 +41,13 @@ import java.util.logging.Level;
public class RPlayer extends REntity {
private static Team team = Bukkit.getScoreboardManager().getMainScoreboard().registerNewTeam("Replay");
private static final Team team;
static {
if(Bukkit.getScoreboardManager().getMainScoreboard().getTeam("Replay") != null)
team = Bukkit.getScoreboardManager().getMainScoreboard().registerNewTeam("Replay");
else
team = Bukkit.getScoreboardManager().getMainScoreboard().getTeam("Replay");
team.setOption(Team.Option.NAME_TAG_VISIBILITY, Team.OptionStatus.NEVER);
team.setNameTagVisibility(NameTagVisibility.NEVER);
}