CommandHelper

CommandHelper

46.5k Downloads

Command Block get/setCommand

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-2680 - Reported by PseudoKnight

It'd be nice to allow certain permission groups to use a limited set of commands in command blocks.
http://jd.bukkit.org/dev/apidocs/org/bukkit/block/CommandBlock.html

set_command_block(locationArray, command)

commented

Comment by PseudoKnight

Probably update get_command_block() to accept a location argument, when provided, the function would return a cmd instead.

I've since written my own plugin for this and the methods above work perfectly. I believe it would be a valued function in CH for very little effort.

commented

Comment by jb_aero

Being able to set the name too would be nifty.

commented

Comment by PseudoKnight

Added in build 2639:

[get|set]_block_command()
[get|set]_command_block_name()

Also there's support for command minecarts using entity_spec with the indexes "customname" and "command", like the nbt tags. (I forgot to add this to the docs)