Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,11 @@ private String randomHackyEmptyName() {
final StringBuilder builder = new StringBuilder();
// Player names cannot be updated after the initial add without fully respawning them;
// Stack random color codes to appear as an empty name, later filled with a team prefix
for (int i = 0; i < 8; i++) {
for (int i = 0; i < 7; i++) {
final int random = ThreadLocalRandom.current().nextInt(ChatColorUtil.ALL_CODES.length());
builder.append('§').append(ChatColorUtil.ALL_CODES.charAt(random));
}
builder.append("§r");
return builder.toString();
}

Expand Down
Loading