mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +01:00
Use the NPC's UUID instead of a random UUID for scoreboards to avoid filling scoreboard.dat
This commit is contained in:
parent
96574819f6
commit
c6d2d1160d
@ -100,7 +100,7 @@ public class HumanController extends AbstractEntityController {
|
||||
|
||||
if (Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
||||
Scoreboard scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
|
||||
String teamName = UUID.randomUUID().toString().substring(0, 16);
|
||||
String teamName = uuid.toString().substring(0, 16);
|
||||
|
||||
Team team = scoreboard.getTeam(teamName);
|
||||
if (team == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user