CommandGuardian is a lightweight and efficient plugin that allows server administrators to block specific commands from being executed by regular players while maintaining full access for admins and operators.
️ Features
Flexible Command Blocking: Block any command you specify in the configuration
Admin Bypass: Administrators and OPs can always use blocked commands
Real-time Configuration: Reload settings without restarting the server
Lightweight: Minimal performance impact on your server
Detailed Logging: Track blocked command attempts for security monitoring
How It Works CommandGuardian intercepts player commands before they're executed and checks them against your configured blocked commands list. If a regular player tries to use a blocked command, it's cancelled and they receive a customizable denial message.
⚙️ Configuration
Code (YAML):
# Commands that should be blocked for non-admin players blocked-commands: -
"/bukkit:?" -
"/bukkit:help" -
"/bukkit:plugins" -
"/bukkit:pl" -
"/bukkit:version" -
"/minecraft:me"
# Messages messages:
no-permission: "&cYou don't have permission to use this command!"
Common Use Cases
Hide Server Information: Block /plugins, /version, and similar commands
Prevent Bukkit Command Access: Stop players from using /bukkit:* commands
Restrict Admin Commands: Block any command you don't want players to access
Security Enhancement: Prevent information gathering by malicious players
Commands & Permissions Commands:
/commandguardian - Main plugin command
/commandguardian reload - Reload configuration
Aliases: /cg, /cmdguard
Permissions:
commandguardian.admin - Bypass all command blocks and reload config (default: OP)
Installation
Download the plugin JAR file
Place it in your server's plugins folder
Start or restart your server
Edit plugins/CommandGuardian/config.yml to customize blocked commands
Use /commandguardian reload to apply changes
Requirements
Minecraft Version: 1.21+
Server Software: Spigot, Paper, or any Spigot-based server
Java: Java 21+
Support If you encounter any issues or have suggestions for improvement, please don't hesitate to reach out. I'm committed to maintaining and improving this plugin based on community feedback.
Why Choose CommandGuardian?
Simple Setup: Works out of the box with sensible defaults
Performance Focused: Minimal resource usage
Actively Maintained: Regular updates and bug fixes
Community Driven: Features requested by real server administrators
Perfect for any server that wants to maintain security and prevent players from accessing sensitive server information through commands!