This is a little plugin which executes lists of commands which are defined in the config file of the plugin if a player is interacting with a specific item in hand with a block or a player. For example you can easily set the group of a player in the PermissionsBukkit Plugin.
Just execute the command /ecb and right-click/interact a target to execute a command list which is bind on the item held in the hand.
Under the section "items" you can bind a list of commands to a specific item which must be held in the hand to execute the commands.
The config can be reloaded with "/ecb reload".
items: '3': commands: - /permissions player setgroup %playerclicked% default - /deop %playerclicked% onlyop: true type: PLAYER
This config section binds the commands "/permissions player setgroup %playerclicked% default" and "/deop %playerclicked%" to the dirt item. You have to specify the item ID which must be put in apostrophes.
The onlyop option bypasses the permissions and only allows ops to use this item.
The type option specifies the type of this command list:
There are some templates available:
Available Permission Tags:
To get minimum permission to use the plugin you need to have at least the tag "ecb.use" (for /ecb) and "ecb.use.item.[itemid]".
Feel free to give me a feedback/ send a ticket with suggestions and problems.