Highly configurable plugin that allows you to block specific commands (/op /gamemode and more..)
SimpleCommandBlocker
SimpleCommandBlocker is a lightweight and highly configurable plugin that allows you to **block specific commands**.
With an advanced **regular expression-based system**, you can block not only exact commands but also custom variations.
✅ Perfect for public and private servers! Take full control over executed commands and prevent the use of harmful or unauthorized commands.
Main Features
Customizable Command Blocking
Set a list of forbidden commands in the config.yml file.
Supports regular expressions, allowing you to block variations of the same command.
Example: Blocking /example.* will prevent the use of /example, /example123, /example_test, etc.
Real-Time Admin Notifications
- When a player attempts to use a blocked command, all online admins receive a private alert.
- Customize the notification message in the config.yml file.
Exempt Specific Players
- If certain players need to bypass command blocking, you can add them to the "excluded-players" list in config.yml.
- Useful for moderators or admins with special access.
Logging Blocked Commands
- The plugin logs every attempt to use a forbidden command in a dedicated log file.
- Logs are saved in the /plugins/SimpleCommandBlocker/logs/ folder with a file for each player.
- You can disable this feature! If you don't want to save logs, simply set enable-logs: false in config.yml.
Localization Support
- All plugin messages are fully customizable in the config.yml file.
- Modify the text to match your server's language or add a personal touch.
Admin Command for Statistics
- Admins can use /scb to view the currently blocked commands and the number of failed attempts.
- This helps monitor suspicious players trying to execute prohibited commands.
**### Permissions
simplecommandblocker.notify**
Receives alerts when a player attempts to use a blocked command.
simplecommandblocker.admin
Allows the use of /scb to view blocked commands and attempt statistics.
*```
blocked-commands:
- "/example.*"
- "/plugins"
- "/pl"
- "/bukkit:.*"
- "/op"
- "/minecraft:.*"
- "/mvremove"
- "/mv remove"
- "/mvdelete"
- "/multiverse-core:.*"
- "/sudo"
- "/esudo"
- "/execute"
- "/essentials:.*"
- "/about"
- "/ver"
- "/seed"
- "/tnt"
- "/eco give"
excluded-players:
- "AdminExempt"
- "Lino9999"
enable-logs: true
messages: blocked: "&cThis command is blocked!" adminAlert: "&e[SimpleCommandBlocker] The player {player} attempted to use a blocked command: /{command}" scbHeader: "&6[SimpleCommandBlocker] Blocked Commands:"
config.yml*
<center>**
### Why Use SimpleCommandBlocker?**</center>**
✔ Easy to configure: Everything is managed through config.yml, no complicated setup required.
✔ Compatible with all permission plugins: Works with LuckPerms, PermissionsEx, and other permission systems.
✔ Advanced security: Blocks command variations, not just exact matches.
✔ Lightweight and optimized: Doesn't slow down the server and is designed for high performance.**
<center>**
Download now and secure your server in minutes!
**
*>If you want to create a video tutorial about my plugin it will be published here ;D<*
**
My Other Plugins:
[SimpleCommandItem](https://www.spigotmc.org/resources/simplecommanditem.122867/) | [SimpleMoreSounds](https://www.spigotmc.org/resources/simplemoresounds.122846/)**</center>