Item2Cmd

item2command

Source: https://dev.bukkit.org/projects/item2command
This is what we used to bind /WC to the Warp Clock players receive at First Join on FloydCraft

item2command

The plugin that converts an item click to a command execution

Description

item2command allows you to convert an item click to a command execution. Example: A player right clicks on a compass the plugin will run the command /spawn for the player.

Commands

Command Description
/item2command Show information about item2command.
/i2cmd Alias for /item2command.
/i2cmd help Show a list of plugins.
/i2cmd reload Reload the configuration file.
/i2cmd add <command> Add an item that executes a command on click. You have to hold the item you want to associate in your hand.
/i2cmd remove Remove an item that executes a command on click. You have to hold the item you want to associate in your hand.

Remember that you can use all the commands both either with /item2command or with /i2cmd.

%player% Variable

Since item2command version 0.4 you can use the %player% variable. You can just add this variable to a command when you bind it to an item. The variable will be replaced with the name of the player who clicks on the item.

Permissions

General Permissions

Permission Description
item2command.info Permission for /item2command and /i2cmd.
item2command.help Permission for /item2command help and /i2cmd help.
item2command.reload Permission for /item2command reload and /i2cmd reload.
item2command.add Permission for /item2command add and /i2cmd add.
item2command.remove Permission for /item2command remove and /i2cmd remove.

Item Usage Permissions

Since item2command version 0.3 you have to use permissions for each item.

Permission Description
item2command.STONE Permission to use a STONE. If a player who does not have this permission right clicks a STONE nothing will happen.

The same for every other item. You can find a list with the item names here.


You have problems with configuration? Take a look at the videos!

Leave a Reply

Your email address will not be published. Required fields are marked *

12 − 3 =

Skip to toolbar