PlayerIDCounter
A lightweight plugin that automatically assigns each player a unique persistent ID and provides easy placeholder and API access to it.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
PlayerIDCounter
This was originally a plugin I made for personal use. Suggestions for additional features or improvements are welcome.
Main Features
Automatic ID Assignment When a player joins the server for the first time, the plugin automatically assigns them a unique, incrementing ID. The process is fully automatic and does not require any administrator intervention.
Welcome Message When a player joins the server, the plugin sends them a welcome message displaying their assigned ID. The content of this message can be customized in the configuration file.
Persistent Storage All player IDs are saved to a file. Even after a server restart, players will retain their assigned IDs.
PlaceholderAPI Variables
* `%playerid_id%` — Displays the player's own ID (can be used in scoreboards, tab lists, holograms, etc.) * `%playerid_{id}%` — `{id}` refers to the player's ID and returns the corresponding player name
External API Usage
```java int playerId = PlayerIDCounter.getPlayerId(player.getUniqueId()); ```