CommandBlockPermissions icon

CommandBlockPermissions -----

Allow players to use command blocks without being OP!




Hadn't worked on this project in such a long time I forgot about some testing code I was working on. It's been removed.
----------, Jan 21, 2021

This update fixes a bug reported by @tmantti (thanks!), where it would print an exception in console if you only put spaces in the command block. This is now fixed.

Let me know if you find any more bugs, thanks!
----------, Jan 20, 2021

This update adds a requested feature to be able to place command blocks while in edit mode. This feature is disabled by default but you can enable it by setting the option "command-substitute" to a valid block from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

Due to the way the internals of the server work, a player cannot place a command block unless they are a real OP, even if they have the minecraft.commandblock permission. To get around this, the command-substitute option was created. Whatever block you put in here will be replaced by a command block when placed in edit mode.

There is no easy way to get the direction a block should be facing that I can see, so I've hacked together a way to do it. If you experience problems getting a command block to face the correct direction, set the command-substitute option to a block that also naturally has a directional property, like a piston. If you use a block that cannot face all directions, like a torch, (torches can't have BlockFace.DOWN I believe) you will not be able to place command blocks facing down.

If you use a tile entity as the substitute block, such as a skull or a chest, you may get a scary message like this:
Code (Text):
Block at 0, 64, 0 is Block{minecraft:command_block} but has [email protected] Bukkit will attempt to fix this, but there may be additional damage that we cannot recover.
This message is harmless, (we just created the block, there is no valuable data to be damaged) but you may wish to set it to something without extra data like a piston to avoid getting this message.

As usual, report any bugs or features you'd like to see.
----------, Jun 17, 2020

This update adds some basic access control measures such as a whitelist, blacklist, colon-command blocking, (like bukkit:ver), and a requested feature to block tab completion while in command block edit mode.

Oh yeah, there's also a bypass permission for these restrictions that is disabled in the config by default, in case whoever is using the plugin has the ability to modify their own permissions.

Let me know if you find any bugs, thanks!
----------, Jun 14, 2020

There is now a config.yml option that will auto-enable command block edit mode for any staff that join.
----------, May 25, 2020

Resource Information
Author:
----------
Total Downloads: 747
First Release: May 25, 2020
Last Update: Jan 21, 2021
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings