CommandItems icon

CommandItems -----

Simple plugin allowing you to bind commands to individual items, can also make the item consumable



really just a very simple plugin. you can bind one or several commands to individual items that are executed when the item is right clicked. you can also make it so the item is consumed after usage.

i put this plugin together in about an hour for my own server and figured i might as well upload it for others to use if they feel like it. i'm not gonna put a lot of effort into maintaining it or making it customizable so if it's not compatible with your version of minecraft you can take the plugin from github and update it yourself, the plugin should work for any version 1.14+ though but i've only tested 1.18.1.

Permissions:
commanditems.create
to get access to the main commands


Commands:
/ci add <command>
adds a command to the held item to execute when interacted with. use the %player% placeholder wherever you want to use the user's name

/ci clear
removes all commands from the held item

/ci setconsumable <true/false>
if true the item will be consumed when used, if false it won't (default false)

/ci setrequirepermission <true/false> <password>

(default true) ITS IMPORTANT YOU READ THIS, if true the commands in the item will be executed by the player and thus also use the player's permission. if false the command will be executed by console and therefore ignore any permissions the player has. if this command falls into the wrong hands they could easily make an item that just OPs a player. this is why this command requires a password to be executed (view/change password in config), i'm not liable for any fuckups you make with this.

the plugin also features a configurable command blacklist in the config, any value in this blacklist can't be used in the binding of commands

/ci setcooldown <cooldown in milliseconds>
sets the cooldown of the item in milliseconds, every time the item is executed this cooldown is applied and the player won't be able to use this item again until the cooldown has ran out. (every time you use this command the item is given a random unique ID that the cooldown is based off)

/ci stats

displays the current commands bound on the held item, as well as if it's consumable or not or if it overrides permissions.
Resource Information
Author:
----------
Total Downloads: 668
First Release: Jan 28, 2022
Last Update: Feb 4, 2022
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings