LMBishop / CommandToItem

Plugin for Spigot which allows for the creation of customisable items which executed predefined commands.
GNU General Public License v3.0
3 stars 3 forks source link

Allow no command #13

Closed alpoi closed 2 years ago

alpoi commented 2 years ago

Potentially odd suggestion given the name and function of the plugin: Would it be possible to make on-use.commands optional? I like to use your plugin to save specific items to give in crates (your layout is by far the best for name/lore/enchants/attributes etc). It would be nice if the item didn't require command functionality!

LMBishop commented 2 years ago

You could try setting it to an empty array:

...:
  on-use:
    commands: []

That should, in theory, make the plugin process no commands

alpoi commented 2 years ago

Worked perfectly, you're amazing thanks!