Simple Whitelist
一个基于用户名的简单白名单,适用于 Minecraft 服务器 —— 同时提供 Fabric 模组和服务端插件版本。
功能特性
- 基于用户名的白名单: 白名单以用户名为键,而非 UUID。名称区分大小写 ——
Steve和steve被视为不同的玩家。 - 数据库存储: 可将白名单数据存储在 JSON 文件或 MySQL 数据库中。
- ModMenu 界面(Fabric 客户端,1.21+): 安装 ModMenu 后,提供一个极简的配置界面,用于切换白名单状态 —— 在将单人世界设为局域网联机时非常方便。
Fabric 模组
依赖项
必需:
可选:
- fabric-permissions-api 的实现提供者(例如 LuckPerms),用于基于权限的命令访问。若未提供,命令将回退至原版操作者等级 4。
安装方法
- 从 Modrinth 下载与你 Minecraft 版本对应的最新发行版。
- 将
.jar文件放入你的mods文件夹中。
服务端插件
相同的白名单功能也作为服务端插件提供 —— 一个 jar 包即可兼容 Spigot、Paper、Purpur 和 Folia。它复用了模组的 JSON/MySQL 存储机制以及相同的区分大小写、基于用户名的规则,且无需客户端模组支持。
- 配置文件:
plugins/SimpleWhitelist/config.json—— 结构与模组相同(见下文)。 - 权限节点:
simplewhitelist.command(默认:op)—— 可通过任何权限插件(如 LuckPerms)授予该权限。
安装方法
- 从 Modrinth 下载最新的插件发行版。
- 将
.jar文件放入你的plugins文件夹中。
仅客户端的功能(ModMenu 配置界面)仅限模组使用,没有对应的插件实现。
配置
默认配置文件路径为 config/SimpleWhitelist/config.json(模组)或 plugins/SimpleWhitelist/config.json(插件):
{
"whitelist": true,
"databaseType": "json",
"mysqlUrl": "jdbc:mysql://<username>:<password>@<host>:<port>/<database>",
"jsonFileName": "whitelist.json"
}
配置选项说明:
whitelist:启用或禁用白名单。databaseType:使用的数据库类型。可选值为json或mysql。mysqlUrl:MySQL 数据库的连接字符串。jsonFileName:用于存储白名单数据的 JSON 文件名。
命令
simplewhitelist list: 列出白名单中的所有玩家。simplewhitelist add <player>: 将某玩家添加到白名单。simplewhitelist remove <player>: 从白名单中移除某玩家。simplewhitelist on: 启用白名单。simplewhitelist off: 禁用白名单。
simplewhitelist 别名: swl、swh、swhitelist
权限
simplewhitelist.command: 允许玩家使用白名单相关命令。
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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Whitelist
下载 Simple Whitelist
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
请参阅
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧