Command Blocking – Prevent players from using restricted commands configured in config.yml.
Allowed Commands – Certain commands can bypass blocking for OPs or specified allowed commands.
Tab-Complete Hiding – Blocked commands will not appear in tab-complete suggestions for non-OP players.
Custom Messages – Configure messages for blocked commands (blockedcmd) and unknown commands (unknowncmd). also harded a default incase config.yml breaks.
Plugin Info & Reload – Use /protectinfo to view plugin info, and /protectreload to reload the configuration.
Logging – Optional console logging for blocked command attempts, configurable in config.yml.
Improvements
Optimized for Minecraft 1.20.*+, fully compatible with Spigot/Paper servers.
Clean and readable console output on plugin enable.
Fully configurable via config.yml for easy customization.
Permissions
protect.reload – Allows reloading the plugin configuration.
protect.info – Allows viewing plugin info.
Configuration
blocked_commands – List of commands to block.
allowed_commands – List of commands to always allow.
logging.enabled – Enable or disable console logging for blocked commands.
logging.format – Customize the format of blocked command logs.
Bug Fixes / Notes
Fixed tab-complete visibility for blocked commands.
Dynamic Blocked Commands: Blocked commands can now be easily configured via the config.yml file. Simply add or remove commands in the blocked_commands section to customize which commands should be restricted.
Improvements:
Performance Optimized: We’ve fine-tuned the event handling, reducing any potential lag, especially when processing player commands.
Cleaner Code: Refactoring and simplifications have been made for easier maintenance and better readability.
⚙️ Configurable Messages:
You can now customize the blocked command and unknown command messages directly in the config.yml file, allowing for more personalized notifications to players.
️ Bug Fixes:
Resolved a minor issue with command recognition, ensuring smoother execution across all scenarios.
How to Use:
Open your config.yml file and add or remove commands in the blocked_commands list to configure which commands should be blocked for regular players.
Customize the messages for blocked and unknown commands in the config as well.
We hope this update makes Custom Protect even more intuitive and visually appealing for your server! Keep your commands secure and customize them to fit your needs. As always, feedback is welcome, and thank you for using the plugin!