CommandBlocker
CommandBlocker is a simple plugin used to block players from using commands set in the configuration file. Useful for blocking commands such as /version and /plugins.
Features
- Ability to blacklist or whitelist specific commands. Can be done in-game via commands.
- Ability to hide specific commands from tab complete without blocking them.
- Hides blocked commands from tab complete.
- Option to hide all commands with a colon from tab complete.
- Ability to bypass the block with the permission "commandblocker.bypass"
- Configuration supports MiniMessage
Requirements
- Java 8 or newer
- Server Software with Bukkit API.
Commands
| Command | Description |
|---|---|
| /cb add [command] | Adds a command to the command list. |
| /cb help | Displays a list of plugin commands. |
| /cb mode [BLACKLIST/HIDE/WHITELIST] | Sets the plugin mode. |
| /cb reload | Reloads the plugin configuration. |
| /cb version | Displays the plugin version. |
Permissions
| Permission | Description |
|---|---|
| commandblocker.admin | Required to run plugin commands. |
| commandblocker.bypass | Allows the player to bypass the command block |
Support
For bug reports and feature requests we'd prefer you use the GitHub Issue Tracker. For other types of support we also now have a discord server, which you can access with the button below.
bStats
All Versions
+ Add Version- Fixed Tab Completion not being blocked in Minecraft 26.0 and newer.
- Added more commands to the default config.
- Full Changelog**: https://github.com/JadedMC/CommandBlocker/compare/1.7.1...1.7.2
- A Note on Spigot and Legacy Minecraft Versions:**
As Mojang continues to push more technical changes, and Paper continues it's separation from Spigot, it is becoming harder and harder to support Spigot and older versions of Minecraft. As a result, this will be the final version that supports Spigot and Minecraft versions older than 1.16. Spigot makes up only 2.23% of servers currently using this plugin. Dropping support for these will allow new features to be implemented faster and will prevent the plugin from breaking during Minecraft updates.
- Full Changelog**: https://github.com/JadedMC/CommandBlocker/compare/1.7...1.7.1
ActionBar will display a message in your action bar when a command is blocked. It does not conflict with the "Message" option, so you can have a message appear in both. In fresh installs this will already be included in the config.yml, but in old installs you can add it manually. It will only attempt to display if the option exists in the config.
``
yaml
# Message displayed in the action bar informing the player that the command has been blocked. Leave blank to disable.
ActionBar: "<red>You cannot use that command!"
`
Sound will play a configured sound to you when a command is blocked, including the ability to change the pitch and volume. It uses Bukkit's built-in Sound enum. You can find a full list of that here: [https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html). Like the ActionBar settings, they will be included in fresh installs but will need to be manually added if trying to use it in pre-existing configurations.
`yaml
# Plays a sound when the command has been blocked. Delete this section to disable it.
Sound:
Sound: ENTITY_ENDERMAN_TELEPORT # Sound to be played. You can find a full list here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
Pitch: 0.5 # Pitch of the sound. Range: 0.0 - 1.0
Volume: 1.0 # Volume of the Sound. Range: 0.0 - 1.0
``- Other Changes**
- Updated adventure to 4.25.0
- Added support for blacklisting sub commands. (Note: they will still appear in tab complete)
- Fixed a bug that preventing hiding WorldEdit commands from tab complete.
- Updated adventure to 4.19.0.
- Added support for PlaceholderAPI
- Added support for BetterReload
- Fixed /commandblocker not having a permission set in plugin.yml (ironic, I know)
- Fixed the "commandblocker.bypass" permission not being in plugin.yml
- Updated adventure to 4.17.0.
- Fixed [#6](https://github.com/JadedMC/CommandBlocker/issues/6): Plugin incompatible with server software that included old versions of Adventure
- Added "/cb v" as an alias for "/cb version"
- Fixed [#4](https://github.com/JadedMC/CommandBlocker/issues/4): Bypass permission does not work when hiding colon commands (by [JasonHorkles](https://github.com/JasonHorkles))
- Allow proper multi-line YAML Strings in config.yml
- Slight performance improvements
- Improved the legacy-to-MiniMessage color code translation.
- Allow Folia to load the plugin
- Additions**
- Added support for versions 1.8 and higher.
- Changes**
- Updated Adventure to 4.14.0.