Sueta
DI

DISCONTINUED - RPGInventory-BetterConfigs (+ ItemsAdder comp

1.0

Makes parts of RPGInventory configs easier to edit. ( also adds compatibility to ItemsAdder )

·Config

This plugins adds some useful properties to RPGInventory.

It also adds also ItemsAdder compatibility.

slots.yml changes:
With this plugin you can write this:

rings:
    type: PASSIVE
    slot: [10, 28]
    holder:
      item: DIAMOND_HOE:90012
      name: "&a&lRing slot"
      lore:
        - "&6&oHere possible to put only ring"
    allowed-items-by-name:
      - ring-of-gods
    denied-items-by-name:
      - another-rpginventory-item

Instead of this:

rings:
    type: PASSIVE
    slot: [10, 28]
    holder:
      item: DIAMOND_HOE:90012
      name: "&a&lRing slot"
      lore:
        - "&6&oHere possible to put only ring"
    items:
      - STICK:43
     - -DIAMOND_HOE:90024

items.yml changes:
With this plugin you can write this:

ring-of-lonedev:
    texture: DIAMOND
    texture-by-name: itemsadder:purple_ring
    name: Ring of LoneDev
    rarity: LEGENDARY
    drop: false
    abilities:
      permissions:
      - essentials.gamemode
      right-click:
        op: true
        command: time set day %WORLD%
        lore: Set day
        message: Good day!
      left-click:
        op: true
        command: weather %WORLD% sun
        lore: Clear weather
        message: Sunshine!
  another-rpginventory-item:
    texture: DIAMOND
    texture-by-name: example:example_item
    name: Test
    rarity: LEGENDARY
    drop: false

Instead of this:

ring-of-lonedev:
    texture: STICK:43
    name: Ring of LoneDev
    rarity: LEGENDARY
    drop: false
    abilities:
      permissions:
      - essentials.gamemode
      right-click:
        op: true
        command: time set day %WORLD%
        lore: Set day
        message: Good day!
      left-click:
        op: true
        command: weather %WORLD% sun
        lore: Clear weather
        message: Sunshine!
  another-rpginventory-item:
    texture: DIAMOND_HOE:90024
    name: Test
    rarity: LEGENDARY
    drop: false

If you follow the example you will be able to use the command /rpginv item <player> ring-of-lonedev and get the custom item. Then place it in the ring slot and see.

WARNING: in items.yml you have to set a texture value even if you set texture-by-name as you see in my example or RPGInventory will throw an error.

Spoiler

This plugin uses Plugman code to reload itself to bypass a RPGInventory bug.
License is here

Similar projects

Config →