mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +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