Overview
Manage command visibility and permissions
Edit on GitHubCommander
Commander is a powerful Minecraft server plugin that gives you complete control over command visibility, permissions, and registration. Clean up your command list, enhance security, and customize your server's command experience.
Features
Command Management
- Hide Commands: Control which commands appear in tab completion
- Unregister Commands: Completely remove commands from the server
Permission Control
- Override Permissions: Set custom permissions on any command
- Query Permissions: Check current permission settings
- Add Security: Restrict commands that originally had no permissions
Configuration
- JSON Configuration: Simple, human-readable configuration files
- Hot Reload: Apply changes without server restart
- Manual Editing: Direct configuration file access
Quick Start
Basic Usage
The main command of Commander is /command (or /commandv on the proxy),
and requires the permission commander.admin:
# Hide commands from players
/command hide plugins
/command hide pl
# Add permissions to unrestricted commands
/command permission set luckperms luckperms.use
# Remove dangerous commands entirely
/command unregister op
/command unregister deop
# Save your changes (not required)
/command saveCommon Scenarios
Clean Command List
Hide administrative commands from regular players:
/command hide plugins
/command hide versionSecurity Hardening
Remove dangerous commands:
/command unregister op
/command unregister deopPlugin Integration
Add permissions to plugin commands that lack them:
/command permission set luckperms luckperms.use
/command permission set eco economy.adminPermission System
Required Permissions
commander.admin- Access to all Commander commandscommander.bypass- See hidden commands (wildcard permissions ignored)
Permission Override
Commander can override permissions on (almost) any command, even those from other plugins.
This allows you to:
- Add permissions to unrestricted commands
- Change existing permissions
- Create world-specific or group-specific command access
Wildcard Support
Commander supports powerful wildcard patterns for bulk operations on commands:
Wildcard Patterns
*- Matches any command name*:*- Matches any namespaced command (commands with colons)prefix:*- Matches all commands with a specific namespace prefix*suffix- Matches all commands ending with a specific suffix
Wildcard operations affect many commands at once.
Test carefully and consider using /command save before bulk operations.
To restore from a saved configuration, use /command reload.
Configuration Files
Commander stores settings in three JSON files:
hidden-commands.json- List of hidden commandsunregistered-commands.json- List of unregistered commandspermission-overrides.json- Command permission overrides
Use Cases
- Clean up command clutter for players
- Remove dangerous commands like
/opand/deop - Add security layers to plugin commands
- Create context-specific command access
Last updated on