Empire Command Blocks

EmpireCommandBlocks

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.

Usage

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.

Config

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
Commands

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.

Onlyop

The onlyop option bypasses the permissions and only allows ops to use this item.

Type

The type option specifies the type of this command list:

  • Player: You have to interact with a player.
  • Block: You have to interact with a block.
  • None: It's equal if you interact with air, a block or a player.
Templates

There are some templates available:

None (available on all types):
  • - %player%: Gets the login name of the interacting player.
Player (including "none")
  • - %playerclicked%: Gets the login name of the target player.
Block (including "none")
  • - %blockid%: Gets the Block-ID of the target block.

Permissions

Available Permission Tags:

  • ecb.reload - reload the config
  • ecb.use - usage of /ecb (not reload)
  • ecb.use.item.* - Allows all items (Operators are always allowed to execute all commands)
  • ecb.use.item.[itemid] - Allows the usage of a specific Item.
  • ecb.* - all ecb permissions

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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    43983
  • Created
    Aug 28, 2012
  • Last Released File
    Never
  • Total Downloads
    3,060
  • License

Categories

Members

Recent Files