ItemJoin

ItemJoin 1.4

Fixes the Wrong API and Incompatible API errors.
Allow slot setting on items to go up to 39. Slots 36-39 are the 4 armor slots.
You can now specify the slot the item should go to, as well as enchants to put onto the item.

v1.3 Config:
YAML:
#ItemJoin by Sleepybear - v${project.version}

#clearOnJoin: <boolean>
# if set to true, will clear the players inventory on join
clearOnJoin: false

#firstJoinOnly: <boolean>
#  if set to ture, will try to give the player the listed items only
#  on the first time they join. This also means Inventories will not be
#  cleared for returning players.
firstJoinOnly: false

#bypass: Array of <string>
# if playername is included here, their inventories will never be cleared,
#  even if the above option is enabled
bypass:
  - Sleepybear

#items: array of maps
# example:
# items:
#  - itemId: 276
#    meta: 0
#    count: 1
#    slot: 0 # Can be between 0 and 35, 0-8 is the hotbar
#    ench: # LIST of enchantment ID & Level, both must be specified, see see https://github.com/NukkitX/Nukkit/blob/358a5aa18ee4620c05535d304bf1394125a72bf2/src/main/java/cn/nukkit/item/enchantment/Enchantment.java#L36
#     - id: 13 #FIRE ASPECT
#       level: 2
items:
  - itemId: 276
    meta: 0
    count: 1
    ench:
      - id: 13
        level: 2
      - id: 26
        level: 1
  - itemId: 345
    meta: 0
    count: 1
    slot: 9
New Config option:

firstJoinOnly: <boolean>
When set to true, plugin will only attempt to give the item to a player if they have not played before.

Please be sure to post to the GitLab issues with any bugs, or reach out to me on the NukkitX discord.
Top