item2command
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.
@wolkenkletterer
Ähm... danke.
Epic Korni <3 GEILES Plugin Du bist einfach Geil :D
PUR!MC FTW!
@JugadorNinja
I think I don't understand where a %player% variable could be useful. May you explain it to me?
add a variable %player% thank you.
@kornichen
thanks for the additions to the plugin, il definitely be using it on my servers for ease of use!
@SammyT291:
Per item permissions will be available in the next version that I am going to release this week. Maybe I can add delays in that version too but I cant promise. If not I will release it in a nearly future version.
Hey could you add the ability to set items to only run commands if the player has permission to use the item?
Edit 1: also maybe the ability to set a delay on the item usage?
ok :)
@Meastrofer5
At the moment you can't bind more than one command to one item. It will be possible in a future version.
can i add more cmd to one item ?
Epic <3