Skip to content

Commit

Permalink
Use the NPC's UUID instead of a random UUID for scoreboards to avoid …
Browse files Browse the repository at this point in the history
…filling scoreboard.dat
  • Loading branch information
fullwall committed May 3, 2016
1 parent f96cfb9 commit 74e8ca0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void run() {

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) {
Expand Down

0 comments on commit 74e8ca0

Please sign in to comment.