CommandBlockPermissions icon

CommandBlockPermissions -----

Allow players to use command blocks without being OP!



v1.3 - Placing command blocks in edit mode
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
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