Skip to content

Releases: Niix-Dan/CommandItems

v1.1.0

04 Jul 23:42

Choose a tag to compare


[ 🚧 1.1.0 ]


What's New

  • Item Identifiers Updated: We have transitioned from using item names and materials as identifiers to utilizing tags for enhanced flexibility and scalability. To set an item identifier, hold the item in your hand and use the command /cmdi set <identifier>. This new system allows for more precise and versatile item management.

What's Changed

  • Permissions Added: Players now require specific permissions to use certain items, improving security and control over item usage within the server.
  • Improved Item Identification: The method for identifying items has been upgraded to use tags, making the system more robust and future-proof. PR #1 by @Niix-Dan.

Full Changelog: Compare v1.0 to v1.1.0


New Config

# 1k money example
# Grab an item and use (/cmdi set #1kmoney) to set the item identifier
ExampleMoney:
  ItemIdentifier: "#1kmoney" # Identity of the item using tags (will check when you click with an item)
  Action: BOTH # Actions: [L_CLICK, R_CLICK, BOTH]
  Consumable: true
  Permission: None # Permission required to use the item (None or Custom Permission)

  Commands:
    Player: []
    Server:
      - "money give %player% 1000"

  Extras:
    CustomTitle:
      Enabled: true
      Title: "&aMONEY"
      Subtitle: "&fYou received 1k Money"

    Sounds:
      Enabled: true
      List: # SOUND:pitch:tick
        - "entity.firework_rocket.launch:1.0:0"
        - "entity.player.levelup:1.2:10"
        - "entity.player.levelup:1.6:10"

    Chat:
      Enabled: true
      Messages:
        - "&aYou received &f1k"

    ActionBar:
      Enabled: true
      Message: "&f+1k MONEY"


# 10k money example
ExampleTpScroll:
  ItemIdentifier: "#tpscroll"
  Action: BOTH
  Consumable: true
  Permission: "CommandItem.use.tpscroll"

  Commands:
    Player: []
    Server:
      - "tp %player% 0 120 0"

  Extras:
    CustomTitle:
      Enabled: true
      Title: "&aTeleported!"
      Subtitle: "&f-1 Teleport Scroll"

    Sounds:
      Enabled: true
      List:
        - "entity.firework_rocket.launch:1.0:0"
        - "entity.player.levelup:1.0:20"

    Chat:
      Enabled: true
      Messages:
        - "&aYou entered a protected area"

    ActionBar:
      Enabled: true
      Message: "&fTeleported!"

Release - v1.0

14 Apr 16:01

Choose a tag to compare

Config.yml

# 1k money example
ExampleMoney:
  ItemName: "&a1k MONEY" # Identity of the item (will check when you click with an item)
  Material: "PAPER"
  Action: BOTH # Actions: [L_CLICK, R_CLICK, BOTH]
  Consumable: true

  Commands:
    Player: []
    Server:
      - "money give %player% 1000"

  Extras:
    CustomTitle:
      Enabled: true
      Title: "&aMONEY"
      Subtitle: "&fYou received 1k Money"

    Sounds:
      Enabled: true
      List: # SOUND:pitch:tick
        - "entity.firework_rocket.launch:1.0:0"
        - "entity.player.levelup:1.2:10"
        - "entity.player.levelup:1.6:10"

    Chat:
      Enabled: true
      Messages:
        - "&aYou received &f1k"

    ActionBar:
      Enabled: true
      Message: "&f+1k MONEY"


# 10k money example
ExampleTpScroll:
  ItemName: "&aTeleport Scroll - Spawn"
  Material: "PAPER"
  Action: BOTH
  Consumable: true

  Commands:
    Player: []
    Server:
      - "tp %player% 0 120 0"

  Extras:
    CustomTitle:
      Enabled: true
      Title: "&aTeleported!"
      Subtitle: "&f-1 Teleport Scroll"

    Sounds:
      Enabled: true
      List:
        - "entity.firework_rocket.launch:1.0:0"
        - "entity.player.levelup:1.0:20"

    Chat:
      Enabled: true
      Messages:
        - "&aYou entered a protected area"

    ActionBar:
      Enabled: true
      Message: "&fTeleported!"

Full Changelog: https://github.com/Niix-Dan/CommandItems/commits/1.0