FabricSQLWhitelister

FabricSQLWhitelister

Overrides vanilla whitelist.json with a MySQL database.

by
214 Downloads
fabrictechnologyutility
Rent Server with this Mod

About this Mod

FabricSQLWhitelister

This is a mod intended to override the whitelist.json by instead using a MySQL database.

How to use

You will need:

  • Fabric API
  • The latest version of FabricSQLWhitelister
  • Fabric Loader version >=0.12.8 (I may backport in the future when I have time to add LTS for 1.16.5 & 1.17.1)
  • Minecraft 1.18.*

Instructions

  1. Boot the server up with the mod installed. This may result in a crash, but that is expected.
  2. Navigate to the whitelist.toml that was generated, and add in your MySQL database logins.
  3. In server.properties, set white-list= to true.
  4. You should be good to go! Reboot your server, and if all is well it'll start successfully.
  5. Add and remove players via the /whitelist add <player> and /whitelist remove <player> commands.

Notes

  • At present, this overrides the ability for opped players to bypass the whitelist, although I may change this in a future patch.
  • I have only tested this with a MariaDB server, but should hopefully work on any other conventional MySQL server.
  • If you would like to write your own application to work in conjuction with this mod, it should be known that UUIDs are stored dehyphenated. This is because Mojang's REST api doesn't store the hyphenated player UUIDs, which make it hard to develop other apps to allow integration.

Available Versions

fabricsqlwhitelisterrelease
MC 1.18, 1.18.1-pre1, 1.18.1-rc1, 1.18.1-rc2fabric
December 9, 2021

How to Install FabricSQLWhitelister on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.18.1-rc2).

3

Install Mod

Open the mod browser in the dashboard and search for "FabricSQLWhitelister". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.18.1-rc2, 1.18.1-rc1, 1.18.1-pre1 (+1 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

FabricSQLWhitelister server crashes on startup – what to do?

Most common cause: wrong fabric 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 (1.18.1-rc2). You can switch loaders with one click in the panel.

Is FabricSQLWhitelister compatible with fabric?

FabricSQLWhitelister officially supports fabric for Minecraft 1.18.1-rc2, 1.18.1-rc1, 1.18.1-pre1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with FabricSQLWhitelister – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if FabricSQLWhitelister 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.

Rent Modded Server

Install FabricSQLWhitelister with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.18.1-rc21.18.1-rc11.18.1-pre11.18