Hotfix team
Dieser Commit ist enthalten in:
Ursprung
9731b656b3
Commit
4bd4cdc510
@ -41,9 +41,13 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
public class RPlayer extends REntity {
|
public class RPlayer extends REntity {
|
||||||
|
|
||||||
private static Team team = Bukkit.getScoreboardManager().getMainScoreboard().registerNewTeam("Replay");
|
private static final Team team;
|
||||||
|
|
||||||
static {
|
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.setOption(Team.Option.NAME_TAG_VISIBILITY, Team.OptionStatus.NEVER);
|
||||||
team.setNameTagVisibility(NameTagVisibility.NEVER);
|
team.setNameTagVisibility(NameTagVisibility.NEVER);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren