mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-18 13:21:45 +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()) {
|
if (Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
||||||
Scoreboard scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
|
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);
|
Team team = scoreboard.getTeam(teamName);
|
||||||
if (team == null) {
|
if (team == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user