ID banner
ID icon

ID

Wykonaj mi plugin na komendę /id gdzie pisze ID nad głową każdego gracza w pobliżu 10 bloków ale jest to widoczne tylko dla osoby która użyje komendy lub...

10
paperServer1.21.1mod

What was built

  • Paper plugin “ID” that assigns incremental IDs to players for the lifetime of the server session and shows those IDs above heads only to the viewer.
  • /id shows IDs above nearby players (default 10 blocks) for a short burst; holding the configured key action (default sneak/SHIFT, can be rebound to Z client-side) keeps the display up while held.
  • /report <id> [reason] teleports the target to the configured review point (or the main world spawn if none is set) and notifies players with the notify permission; the target is also informed.
  • /w <id> <message> sends an anonymous whisper to the player with that ID; sender receives confirmation.

Key implementation details

  • IDs are assigned when players join and count up from server start; mappings reset on restart. Commands rely on these IDs, not player names.
  • Displays use per-viewer TextDisplay entities so only the requester sees the labels; they update position every few ticks and clean up on range exit/timeout.
  • Permissions are configurable in config.yml (id.use, id.report, id.report.notify, id.whisper by default).
  • Report teleport defaults to main world spawn; enable and set coordinates under report.teleport in config.yml to force a specific location.
  • Messages, ranges, durations, hold trigger (SNEAK or SPRINT), offsets, and display refresh rate are all editable in config.yml.

Known limitations / tips

  • “Hold key” visibility uses the configured action (default sneak/SHIFT); bind that action to Z in the Minecraft controls if you want the Z key behavior.
  • IDs are not persisted across restarts by design; numbering restarts at 1 each server boot.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.