mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-01 23:23:31 +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) {
|
public void apply(boolean nameVisibility) {
|
||||||
Team team = getTeam();
|
Team team = getTeam();
|
||||||
|
if (team == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
if (!Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
||||||
team.unregister();
|
team.unregister();
|
||||||
|
Loading…
Reference in New Issue
Block a user