ItemCommands
ItemCommands was made by Cutch, all credits go to him!
I'm taking over this plugin because the former author (Cutch) do not have enough time to keep it updated anymore.
Original plugin thread : http:forums.bukkit.org/threads/fun-itemcommands-v1-15-command-hotkeys-using-inventory-1060.14082/
Version
v1.3 for CB1317
Download the latest recommended build
Description
Allows a user or admin to set commands that can be triggered when left/right clicking with the selected item or slot. You also have the choice to set items or money to be consumed, or given to a player. It also has the ability to run commands a user does not have permissions for.
Dependencies - IMPORTANT
- Register - DOWNLOAD
Works with
- (Optional) Help 3
- (Optional) iConomy 4, 5, 6+
- (Optional) BOSEconomy 6, 7
- (Optional) Essentials Economy 2.2.17+
- (Optional) MultiCurrency
Permissions
- Bukkit Permissions (SuperPerms)
- PEX compatible
- Permissions v2.7.4 - 3.x (deprecated)
Features
- Works with Bukkit Permissions (SuperPerms), Permissions (deprecated) and Basic Customizable OP support
- Works with all major economy plugins (optional - auto detected)
- Bind a command to a item/slot in your hand
- Ordering if no item is found a slot command is run, and vice-versa
- Use left and right mouse buttons to triggers commands
- Allow a Global control/command list or Player
- Can also send a message to a player instead of a command
- Can enable or disable the original click events after running a command
- Has the ability to consume or give items/money on command run
- Colours, Random and String Replacements
- Multiple Commands per binding
- Cooldowns per command
- Allow and Deny Commands for different materials
Commands
- For everybody
- /icmd #Shows this help in game with only commands you can use
- = = = = =
- ICmds.create (default to op)
- /icmd add [-i item|-s slot] <flags> [command] #Add command
- /icmd remove [id] #Remove command by ID
- /icmd change [id] <flags> #Change properties of IDs command
- /icmd swap [id #1] [id #2] #Swap commands by ID (Commands with a smaller ID are run first)
- /icmd flags #Shows flags and their usage
- = = = = =
- ICmds.use > To be able to use a Command! (default to op)
- /icmd list <-i item|-s slot> <-g global> #List commands available
- = = = = =
- ICmds.admin (default to op)
- /icmd bind (add|set|remove|list)
- /icmd reload
- = = = = =
- ICmds.super > gives a player the ability to run any command even without permissions (Not Recommended to use with the ICmds.create node) (default to op)
- = = = = =
- ICmds.super.global > gives a player the ability to run any global icmd command regardless of permissions (default to op)
- = = = = =
- ICmds.free > allows the running of commands without money or reagents (default to op)
- = = = = =
- ICmds.global > node for global command changes (default to op)
Configuration
Coming soon
TODO
- None
- If you have any suggestions post or pm me
Known Bugs
None at the moment
Changelog
v1.3 - 15/10/2011
- Updated to CB1317
- Bugfix to Bukkit Permissions
v1.2 - 12/10/2011
- Updated to CB1240
- Added support to : iConomy 6, BOSEconomy 6 & 7, Essentials Economy 2.2.17+, MultiCurrency
- Added support to Bukkit Permissions
v1.15
- Added /icmd bind (add|set|remove|list)
- Support for Permissions 3
Source
Credits
This plugin was created from The Plugin Request Pages thx Mr.Magical
would someone PLEASE tell me WHAT the -s slot freakin means????
@MCer202
This plugin is different :3.
@MegaCraftStaff
Come on, this plugin is deader than dead...
It doesnt work for me.
This plugin version supports up to a couple?
can you update this plugin?
i need this plugin
@theangeldemqn
Yes if you have bukkit essentials do /pt (for power tool) and the command u want to bind to that item your holding. Ex.: Holding a blaze rod type /pt fireball - whenever you left click fireballs will shoot out of your item.
PLEASE PLZ PLZ add the function to bind a command to an item for all players
Is this the plugin when you right click an item and it does the command for you for example I'm using chestcommand plugin, can you make an item come up with a menu with this plugin?? Please help!!!
@seanth
Could you not advertise?
I have an Rp server and i want players to be able to jail people. i dont mean cops and robbers i just wana bind /jail to an item and mabye an un arrest stick to release players. is there anyway ican do rhis
Possible replacement:
http://dev.bukkit.org/server-mods/powertool/
RIP ItemCommands?
http://hatsonmadmen.blogspot.com/2012/03/timesink-part-9-requiem-for-plugin.html
How does one post tickets?
Anyway, a suggestion: add in the ability to crouch+click to add more possibilities
Bug: commands which consume items no longer work. For example:
351:4 0004000000100*-1;/home
will no longer consume the item, nor will the command work. Instead there is an in-game alert.
Oh, and why is Register needed? Is it only needed if you are charging players to use commands?
[SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to ItemCommands org.bukkit.command.CommandException: Unhandled exception executing command 'md' in plugin MobDisguise v1.65 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at com.Cutch.bukkit.ICmds.PlayerEvents.runCommand(PlayerEvents.java:148) at com.Cutch.bukkit.ICmds.PlayerEvents.onPlayerInteract(PlayerEvents.java:70) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:157) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:570) at net.minecraft.server.Packet15Place.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) Caused by: java.lang.ClassCastException: com.Cutch.bukkit.ICmds.PlayerEvents$1 cannot be cast to org.bukkit.craftbukkit.entity.CraftPlayer at me.desmin88.mobdisguise.utils.PacketUtils.packetMaker(PacketUtils.java:154) at me.desmin88.mobdisguise.utils.PacketUtils.disguiseToAll(PacketUtils.java:72) at me.desmin88.mobdisguise.commands.MDCommand.onCommand(MDCommand.java:252) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 15 more
Just cause this problem when using ItemCommands with MobDisguise
Not sure if this should be a ticket or not. The plugin works wonderfully except when I try and bind using an item to the command /spawn (as in teleport to the spawn location). The way I wanted to set it up is the player would consume 1 lapis lazuli dye to teleport to spawn. I am getting an error displayed to me in game, but not in the server console.
The command looks like:
351:4 0004000000100*-1;/spawn
And the error I get in the game is:
Error: com.Cutch.bukkit.ICmds.PlayerEvents$1.teleport(Lorg/bukkit/Location:Lorg/bukkit/event/player/PlayerTeleportEvents$TeleportCause:)Z
I am using Essentials and testing as admin. I can use /spawn and it works as expected. just not using ItemCommands
Edit: I have tried different sorts of commands to achieve the same goal: making a named warp at spawn and using "/warp spawn" and trying "/tppos 0 64 0" (coords of spawn). They all throw the same in-game error.
This doesn't function properly with CB1597. Attempting to add a global command and then listing or removing it provides a string of errors. Any hope of an update?
http://pastebin.com/mER7Yxe4