mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 03:28:45 +01:00
Add null check
This commit is contained in:
parent
4dfac9c62d
commit
f462fe9218
@ -37,6 +37,8 @@ public class ScoreboardTrait extends Trait {
|
||||
|
||||
public void apply(boolean nameVisibility) {
|
||||
Team team = getTeam();
|
||||
if (team == null)
|
||||
return;
|
||||
|
||||
if (!Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
||||
team.unregister();
|
||||
|
Loading…
Reference in New Issue
Block a user