⚡ Command Items ⚡ TeamMT ⚡ icon

⚡ Command Items ⚡ TeamMT ⚡ -----

The simplest way to bind commands to items




This update brings a minor fix with the relocation of the core library. This could cause issues if you were running multiple MT plugins and some of them are not updated!
----------, Nov 2, 2024

This update fixes an issue caused by 1.21 materials missing.
----------, Aug 24, 2024

The plugin now has support for specifying a click type to allow the item to execute, as well as introducing support for CustomModelData on items.

Here's what an item looks like now

Code (Text):

items:
  basic_item:
    consume: true # If the item should be consumed when used
    event-cancel: true # If the event should be cancelled when used (e.g. right-clicking a block)
   
    # This is the list of allowed clicks. The allowed options are:
    # RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK, SHIFT_RIGHT_CLICK_AIR, SHIFT_RIGHT_CLICK_BLOCK, SHIFT_LEFT_CLICK_AIR, SHIFT_LEFT_CLICK_BLOCK, ALL
    allowed-clicks:
      - RIGHT_CLICK_AIR
      - RIGHT_CLICK_BLOCK
      - LEFT_CLICK_AIR
      - LEFT_CLICK_BLOCK
      - SHIFT_RIGHT_CLICK_AIR
      - SHIFT_RIGHT_CLICK_BLOCK
      - SHIFT_LEFT_CLICK_AIR
      - SHIFT_LEFT_CLICK_BLOCK
      - ALL

    # permission: "somepermission.for.item" # The permission required to use the item
    item:
      amount: 1 # The amount of the item
      type: RED_BED
      name: "&cSimple Test Item"
      lore:
        - ""
        - "&7Click me to run"
      enchanted: true
      # custom-model-data: 1234 # The custom model data of the item
    commands:
      # forceOp: false # If the player should be opped when the command is executed
      byplayer:
        - "say Hello from CommandItems!"
      byconsole:
        - "give %player% diamond 1"
 
----------, Aug 22, 2024

A bit late to the party, however this update finally brings 1.20.6 and 1.21 support to the plugins!

As always, and especially now as 1.20.6 changed a lot of things, please join the discord and let us know if there are any issues!

This also fixes a small issue in the plugin with regards to how items were being built.
----------, Aug 18, 2024

With the previous updates, a lot of internal changes have been made.

This update removes a small field used for reflection which is no longer used by the API.
----------, Feb 29, 2024

This update fixes a bug with custom packets being sent in 1.20
----------, Feb 26, 2024

This update brings about two important bugfixes in the internal core library:
- Fixed titlebars not being properly translated in lower versions
- Fixed particles not working in 1.9
----------, Feb 25, 2024

This update brings a small bugfix which patches out the title bar not working properly in 1.8.x versions.
----------, Feb 25, 2024

This update brings a small bugfix which caused skulls to not work properly in 1.20.4 in certain cases.
----------, Feb 24, 2024

This fixes an issue caused by a missing NBT tag setter in non 1.18 versions.

With that, full 1.20.4 support should be here!
----------, Feb 14, 2024

1.20.4 support has been added!
----------, Feb 14, 2024

The long awaited 1.20.2 support has finally arrived!

As always, if anything goes wrong, let us know through the Discord server!
----------, Nov 27, 2023

Fixed a small bug in the core library which sometimes caused cache misses on the class names, and it should bring far more consistent tick times to the plugin.
----------, Aug 25, 2023

Fixed a small bug in the core library which sometimes caused cache misses on the class names, and it should bring far more consistent tick times to the plugin.
----------, Aug 25, 2023

This update brings full hex color support using the standard &#123456 format in the messages file!

For more information check out the wiki

https://panel.masecla.dev/wiki/General Options/Messages File
----------, Jun 27, 2023

This update brings a small adjustment to how messages are handled in the plugins.

Specifically, this brings a performance increase in all versions between 1.12 and 1.16
----------, Jun 27, 2023

This update brings a small adjustment to how messages are handled in the plugins.

Specifically, this brings a performance increase in all versions between 1.12 and 1.16
----------, Jun 26, 2023

This update brings a patch for 1.20.1.

This has been thoroughly tested, however if any issue show up, please let us know!
----------, Jun 24, 2023

This brings XMaterial Bukkit feedback in order to allow hybrid servers to add functionality with items not present on Bukkit.

We've also updated the definitions for items to 1.20 so it should now be 100% supported
----------, Jun 10, 2023

After countless hours spent by the development team to ensure everything is up to date, we happily present you Spigot 1.20 support.

This update brings full compatibility with all the features that this brings.

Please join our discord at https://discord.gg/FdMjWSP to report any issues you might have with any of the plugins in 1.20
----------, Jun 10, 2023

This update brings full integration with PlaceholderAPI when running commands.

Previously PAPI was only being applied on player messages, and should now be also applied on commands being run.
----------, Jun 3, 2023

A heavily requested feature has finally been implemented. A permission node on items can now be placed to prevent people from using items if they don't have a certain permission.

A bug which causes configs to sometimes restart on server reload has now been fixed.
----------, May 22, 2023

An issue was discovered with the compatibility for 1.17.1 when it comes to NBT tags.

This update brings a full patch to all of it!
----------, May 17, 2023

There was a bug in the time formatting API which caused certain durations to show up with erroneous commas.

This update brings a full patch as well as adding years as a potential time unit.
----------, Apr 23, 2023

Fixed an issue with ClassNotFoundException in versions under 1.18
----------, Mar 27, 2023

In 1.18 a new class was introduced in order to help with the management of skulls. This update brings a fix which allows the plugin to work using this class, even in versions prior to 1.18
----------, Mar 26, 2023

Internal library change:
- Fixed an issue where the pointer file would be interpreted as an old config for migration
----------, Mar 23, 2023

Internal library change:
- All plugins now have a messages.yml file which points to the correct location
----------, Mar 22, 2023

Internal library change:
- Fixed an issue with skull serialization
----------, Mar 22, 2023

This update brings full compatibility with the 1.19.4 Spigot version!
----------, Mar 17, 2023

- Setting amount to 0 will now skip the check!
- Cooldown now respects the event-cancel property
----------, Mar 14, 2023

- Implemented a warning for invalid materials
- Added cooldown to items
----------, Mar 10, 2023

- Fixed an issue with lore checking
- Fixed configuration sometimes not being updated properly
----------, Mar 10, 2023

Added the option to make the items glow using the "enchanted" option in the config.

Also fixed a bug where the give command with a player could not be executed through the console!
----------, Jan 21, 2023

This update brings true full compatibility with 1.19.3 by adding all new items inside our internal Material class.

Also internally, resource filtering has been enabled.
----------, Jan 12, 2023

Welcome to the first major update of CommandItems!

The following issues were fixed:

- Fixed an issue with consumables not having correct amount matching
- Fixed up how data items (such as red beds) work in all versions.
- Modified how interactions are checked for
- Fixed up the help message to be accurate
- Major internal structural config
- Added amount to default config
- Default amount is now 1
- Added the /ci types command
- Create CommandItemManager.java
- fix masecla -> teammt labelling in plugin.yml
----------, Jan 3, 2023

- Fixed an issue with consume item not working all the time
- Fixed sometimes clicks going through when they shouldn't
- Fixed a weird interaction with pressure plates
----------, Jan 1, 2023

Resource Information
Author:
----------
Total Downloads: 3,150
First Release: Dec 20, 2022
Last Update: Nov 2, 2024
Category: ---------------
All-Time Rating:
16 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings