Command Items 1.2

Allows users to create items that perform commands when they are used.

  1. ralitski
    Command Items

    The Command Items plugin, based on my Special Items API, allows users on your server to add commands to items. This means that when the item is used (in a way you can specify, by changing what events it listens for), the commands on the item will be executed. It also supports a small number of placeholders that can be used in the commands.

    Commands

    All commands are accessed through the "/commanditems" base command.
    The following commands are available:
    • /commanditems create [-c] [-p=<permission>] [command]
      • Permission: commanditems.cmd.create (default: op)
      • Turns the item you are holding into a command item. Does nothing if it is already a command item.
      • The -c flag can be used to make this item execute its commands as the console.
      • The -p=<permission> flag can be used to add an additional permission requirement to the use of this item's commands.
      • All items require the commanditems.itemuse permission, which all players have by default.
      • The %player% placeholder can be used to reference the player using the item.
      • The %target% placeholder can be used to reference the target of the player's use (eg. a creature that the player attacks).
    • /commanditems delete
      • Permission: commanditems.cmd.delete (default: op)
      • Removes the command item data from the item in your hand, if it is a command item.
    • /commanditems add <command>
      • Permission: commanditems.cmd.add (default: op)
      • Adds the specified command to the command item you are holding.
    • /commanditems set <index> <command>
      • Permission: commanditems.cmd.add (default: op)
      • Adds the specified command to the item you are holding, in the given index (starting at 0).
    • /commanditems remove <index>
      • Permission: commanditems.cmd.remove (default: op)
      • Removes the command at the specified index from the item in your hand.
    • /commanditems info
      • Permission: commanditems.cmd.list (default: op)
      • Shows you information about the command item in your hand.
    • /commanditems events
      • Permission: commanditems.cmd.events (default: op)
      • Lists the event types that command items can listen for.
    • /commanditems enable <event type> [event type 2] [...]
      • Permission: commanditems.cmd.enable (default: op)
      • Enables the given event types on the command item you are holding.
    • /commanditems disable [event type] [event type 2] [...]
      • Permission: commanditems.cmd.disable (default: op)
      • Disables the given event types on the command item you are holding. If no event types are given, all events are disabled.
    • /commanditems placeholders
      • Permission: commanditems.cmd.placeholders(default: op)
      • Lists and describes all placeholders that can be used in command item commands.
    Installation

    To install, simply drag the jar file into your plugins folder and run your server. :)
    Remember that this plugin depends on my Special Items API.

    Here's a basic demo of the plugin:


    Here's a fun command for example:
    /ci create summon PrimedTnt ~0 ~0 ~0 {Fuse:40,Motion:[0.0,1.0,0.0]}
    Mr_robbit likes this.

Recent Updates

  1. More placeholders
  2. Placeholder bug fix

Recent Reviews

  1. theshark556
    theshark556
    5/5,
    Version: 1.2
    wish it would be updated to 1.9 but it is very well made if i say so myself and thanx for making a %target% feature, very good job and pls update.