Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

OfflinePlayer#setWhitelisted writes an empty name to whitelist.json for players obtained via getOfflinePlayer(UUID)

Đang mở
#14,412 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

Start by tracing Bukkit.getOfflinePlayer(UUID) and OfflinePlayer#setWhitelisted, then reproduce the write to whitelist.json. Done means the stored entry has the player’s real name from the profile cache or profile, and /whitelist list and /whitelist remove completion display that player correctly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status: needs triage version: 26.3
Expected behavior

Whitelisting a player with Bukkit.getOfflinePlayer(uuid).setWhitelisted(true) should store the player’s real name next to the UUID, using the profile cache or the player’s profile, like /whitelist add does.

Observed/Actual behavior

whitelist.json gets {"uuid": "<uuid>", "name": ""}. /whitelist list then shows a blank entry, and the player is missing from tab-completion of /whitelist remove.

Screenshot of /whitelist list
Steps/models to reproduce
  1. Call Bukkit.getOfflinePlayer(uuid).setWhitelisted(true) for a player who is not online. For example, call it during the configuration phase, in a handler for PlayerCustomClickEvent.
  2. Open whitelist.json: the name is "".
  3. Run /whitelist list: the entry shows as blank.
Plugin and Datapack List

Just a test plugin that triggers the behaviour described in the 'Steps to reproduce' section. There are no data packs (only vanilla).

Paper version

This server is running Paper version 26.3-205-main@a90108f (2026-10-17T20:50:27Z) (Implementing API version 26.3.build.205-stable)

Other

No response

Ngôn ngữ chính
Java
Star
12.7k
Fork
3.5k
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PaperMC/Paper

Tất cả issue của PaperMC/Paper

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.