A Paper whitelist, ported from VelocityWhitelist (915d0d8).
Same config files and UUID lookups as the Velocity plugin. Only the
platform changes. Runs on Paper 1.20 and up. The plugin's name is
PaperWhitelist, the command is /pwhitelist, the permissions are
pwhitelist.admin / pwhitelist.bypass, and the data folder is
plugins/paperwhitelist/.
| Permission | Purpose |
|---|---|
pwhitelist.admin |
Needed for all /pwhitelist commands |
pwhitelist.bypass |
Can bypass whitelist even if not in list |
| Command | Response |
|---|---|
/pwhitelist |
Info command |
/pwhitelist on |
Turn the whitelist on |
/pwhitelist off |
Turn the whitelist off |
/pwhitelist add <username> [type] |
Add a user to the whitelist (type: microsoft, elyby, drasl) |
/pwhitelist remove <username> [type] |
Remove a user from the whitelist (type: microsoft, elyby, drasl) |
/pwhitelist reload |
Reload the whitelist config |
# Whether the whitelist should be on or off
enabled = true
# The message to be shown on user disconnect
message = "&cWhitelist enabled!"
[auth.drasl]
url = "https://drasl.example.com"
token = "your-bearer-token"Copy the two files from the Velocity plugin folder, no conversion needed:
plugins/VelocityWhitelist/config.toml -> plugins/pwhitelist/config.toml
plugins/VelocityWhitelist/whitelist.json -> plugins/pwhitelist/whitelist.json
Old-format whitelist.json files (a plain list of UUIDs) are still migrated
to the new format on first load, exactly as the Velocity plugin did.
./gradlew shadowJar