WhitelistDb Mod
This mod adds support for using a database as a whitelist, making it easier for players to whitelist on a Minecraft server and saving admins time from manually running the default command to whitelist everyone.
About this Mod
WhitelistDb Mod
Description
This mod is used to make it easier to have the same whitelist across different servers and to use different methods for allowing users to whitelist.
For example, having people in a school Minecraft server, and in order for them to join, they have to verify their school email to gain access to a whitelist command from a Discord bot. (Please note that this does not provide a Discord bot.)
Commands
- /whitelistdb toggle
- Turns the whitelist on and off
- /wban
- Updates the database record to show they are banned across all servers!
- Will kick the player if they are online - does work on players who aren't online
- /wunban
- Updates the database record to show they are unbanned across all servers!
Getting Started
To use this mod correctly, the table needs to at least have this information in it.
uuid : UUID
banned : Boolean
tag : String (Optional - for placeholder api, can be called something other than tag)
This mod also caches usernames and UUIDs locally to ban/unban offline players much more easily.
If this is being added to a server that is already up, you can use the Python script provided in scripts/convert.py to correctly take the usercache.json file in the root directory of the server and make a file that should be placed in config/whitelistdb. This isn't completely necessary, as the cache will auto-update when new people join, but this will make sure that everyone who has ever joined will be detected by the mod.
When the mod is in the mod folder, start the server, and it will make a file located at config/whitelistdb-config.json. This is where you can edit the default values to correctly set up the database and edit the messages that come up when not whitelisted and when users are banned.
Default layout of config/whitelistdb-config.json
{
"host": "localhost",
"port": 5432,
"database": "minecraft",
"table": "server_whitelists",
"placeholder_column": "tag",
"username": "postgres",
"password": "password",
"ssl": false,
"message": "You are not whitelisted!",
"enabled": true,
"banReason": "You have been banned!"
}
The placeholder for this mod varries depending on the version.
- 1.21.x -
%whitelistdb:school% - 26.1.x -
%whitelistdb:playerinfo%
Please note that currently paper and neoforge does not support placeholders!
Mod Information
Current version: 1.5.0
Currently Supported: 26.1.x
No longer Supported: 1.21.x
Available Versions
How to Install WhitelistDb Mod on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set bukkit Loader
In the panel under "Egg", select the bukkit loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "WhitelistDb Mod". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+11 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
WhitelistDb Mod server crashes on startup – what to do?
Most common cause: wrong bukkit version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is WhitelistDb Mod compatible with bukkit and fabric and neoforge and paper and spigot?
WhitelistDb Mod officially supports bukkit, fabric, neoforge, paper, spigot for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with WhitelistDb Mod – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if WhitelistDb Mod consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install WhitelistDb Mod with just one click on your server.