RockinChaos / ItemJoin

Get custom items on join.
https://www.craftationgaming.com/
GNU Lesser General Public License v3.0
137 stars 35 forks source link

I don't understand where the error is, please help #599

Closed Quesivee closed 3 weeks ago

Quesivee commented 1 month ago

Server Version

Paper 1.20.4

Resource Version

ItemJoin v6.0.7

Dump Information

https://ci.craftationgaming.com/dump?id=ivowejafus

Describe The Problem

image image

Additional Context

No response

Checklist

RockinChaos commented 1 month ago

So if you do as the error says and go to https://yaml-online-parser.appspot.com/ and copy-paste your items.yml it will show you this error;

image

The issue is you have your menu item indented larger than the grand canyon, reeling it back in to normal spacing resolves the error. This is described to you on the website as shown in the error which is pointing at the first line being the issue (menu-server) Furthermore, the rest of the data under the menu-server item is missing its spacing, also your itemflags were incorrectly listed.

Here are your fixed items;

# This is the section that the custom created items will be stored.
# All created items should be saved under the 'items' section for each 'custom-item' subsection.
items:
  menu-server:
    id: BOOK
    slot: 8
    name: '&fМеню'
    lore:
      - '&lГлавное меню сервера!'
    interact-right:
      - 'player: menu'
    command-cooldown: 1
    itemflags: death-drops, self-drops
    triggers: join, respawn
    enabled-world: ALL

You may find it easier to use the in-game /itemjoin menu to create and modify your items.

I went ahead and changed the error URL to https://yamlchecker.com/ instead as it is a bit more user-friendly and highlights the specific area causing the error along with a short description of the problem.