WhiteCommand
WhiteCommand is a lightweight server-side Fabric mod that allows administrators to control exactly which commands players can use through a configurable whitelist.
Instead of managing dozens of permissions, you simply define which commands are allowed. All other commands are automatically hidden from command suggestions and cannot be executed.
✨ Features
- ✔️ Command whitelist system
- ✔️ LuckPerms integration
- ✔️ Different command sets for different groups
- ✔️ Hides blocked commands from tab completion
- ✔️ Prevents execution of unauthorized commands
- ✔️ Fully configurable messages
- ✔️ Reload configuration without restarting the server
- ✔️ Server-side only (clients do not need to install the mod)
📋 How It Works
Players can only execute commands that are listed in:
defaultCommands- Their assigned LuckPerms group
Any command not included in these lists will:
- Not appear in command suggestions (Tab Completion)
- Be blocked from execution
- Display a configurable "Unknown command" message
⚙️ Administrator Command
/whitecommand reload
Reloads the configuration without restarting the server.
Required permission:
whitecommand.admin
🔑 Permissions
Bypass Permission
Players with the following permission can use all commands:
whitecommand.bypass
Group Permissions
Grant access to command groups using:
whitecommand.group.<group>
Example:
whitecommand.group.vip
whitecommand.group.premium
📄 Configuration Example
{
"messages": {
"reload_success": "§a[WhiteCommand] Configuration reloaded successfully!",
"unknown_command": "Unknown or incomplete command, see below for error"
},
"defaultCommands": [
"spawn",
"msg",
"tell",
"help",
"rules"
],
"groups": {
"vip": [
"feed",
"heal",
"fly"
],
"premium": [
"craft",
"ext",
"tpahere"
]
}
}
💡 Perfect For
- Survival servers
- SMPs
- RPG servers
- Minigame servers
- Public servers
- Private communities
- Donation rank systems
✅ Compatibility
- Fabric
- Server-side only
- LuckPerms supported
- No client installation required
🚀 Why WhiteCommandFabric?
- Lightweight and fast
- Easy to configure
- Flexible permission system
- Clean integration with LuckPerms
- Works with vanilla commands and commands added by mods
- Keeps command suggestions clean by hiding blocked commands
📜 License
Released under the MIT License.