介绍
中文介绍正在准备中,下面暂时显示原文。
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
- Boot the server up with the mod installed. This may result in a crash, but that is expected.
- Navigate to the `
whitelist.toml` that was generated, and add in your MySQL database logins. - In `
server.properties, setwhite-list=` to true. - You should be good to go! Reboot your server, and if all is well it’ll start successfully.
- 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.
常见问题
FabricSQLWhitelister 支持哪些 Minecraft 版本?
FabricSQLWhitelister 支持 Minecraft Java 版 1.18,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
FabricSQLWhitelister 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分