介绍
Simple Whitelist
A simple, username-based whitelist for Minecraft servers — available both as a Fabric mod and as a server plugin.
Features
- Whitelist based on usernames: The whitelist is keyed on usernames, not UUIDs. Names are case-sensitive —
Steveandsteveare treated as different players. - Database storage: Store the whitelist data in a JSON file or a MySQL database.
- ModMenu screen (Fabric client, 1.21+): With ModMenu installed, a minimal config screen lets you toggle the whitelist — handy when you open a singleplayer world to LAN.
Fabric mod
Dependencies
Required:
Optional:
- A fabric-permissions-api provider (e.g. LuckPerms) for permission-based command access. Without it, commands fall back to vanilla operator level 4.
Installation
- Download the latest release for your Minecraft version from Modrinth.
- Place the
.jarfile in yourmodsfolder.
Server plugin
The same whitelist is available as a server plugin — one jar for Spigot, Paper, Purpur and Folia. It reuses the mod’s JSON/MySQL storage and the same case-sensitive, username-based rules, and needs no client mod.
- Config:
plugins/SimpleWhitelist/config.json— same schema as the mod (see below). - Permission:
simplewhitelist.command(default: op) — grant it via any permissions plugin, e.g. LuckPerms.
Installation
- Download the latest plugin release from Modrinth.
- Place the
.jarfile in yourpluginsfolder.
Client-only features (the ModMenu config screen) are mod-only and have no plugin equivalent.
Configuration
The default configuration file is config/SimpleWhitelist/config.json (mod) or plugins/SimpleWhitelist/config.json (plugin):
{
"whitelist": true,
"databaseType": "json",
"mysqlUrl": "jdbc:mysql://<username>:<password>@<host>:<port>/<database>",
"jsonFileName": "whitelist.json"
}
Configuration options:
whitelist: Enable or disable the whitelist.databaseType: The type of database to use. Can be eitherjsonormysql.mysqlUrl: The connection string for the MySQL database.jsonFileName: The name of the JSON file to store the whitelist data.
Commands
simplewhitelist list: List all players on the whitelist.simplewhitelist add <player>: Add a player to the whitelist.simplewhitelist remove <player>: Remove a player from the whitelist.simplewhitelist on: Enable the whitelist.simplewhitelist off: Disable the whitelist.
simplewhitelist aliases: swl, swh, swhitelist
Permissions
simplewhitelist.command: Allows players to use the whitelist commands.
常见问题
Simple Whitelist 支持哪些 Minecraft 版本?
Simple Whitelist 支持 Minecraft Java 版 1.18–26.2,共 31 个版本,可用的加载器:Bukkit / Fabric / Folia / Paper / Purpur / Spigot。下载时注意选择和你游戏版本一致的文件。
Simple Whitelist 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Bukkit / Fabric / Folia / Paper / Purpur / Spigot,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分