PedroJM96 / SuperLobbyDeluxe

Customize many functions and features of the server lobby in a powerful and free for all.
18 stars 14 forks source link

Question or bug with items.yml #2

Closed PilgrimViis closed 2 years ago

PilgrimViis commented 2 years ago

Hello, I've stumbled on a problem. In my understanding, if I put something in items.yml it should do 2 things:

  1. Add an item to a user when he joins the server
  2. On a right click on the item, it should execute a command. In my case - open server menu. I'm not getting either of those things.
    # items.yml
    menu:
    name: '&8<3>  &6Menu &8<3>  &7(Right button)'
    material: COMPASS # I also tried other blocks, and a default one (SIGN)
    slot: 1
    commands:
    - 'player: menu' # I also tried just 'menu', 'say: hello' and some other commands
    delay: 5
    permission: superlobby.items.menu` # Yeah, I've added this permission. Also, I tried as player and as operator.

    Server Version: Paper 1.18.2 plugin version: 4.5.2, downloaded from spigot


Can you please tell is it a bug, or I'm doing something wrong? Thank you.

PedroJM96 commented 2 years ago

Check that this option in the config.yml file is true and you have the world name set correctly.

`#To give and activate the custom items when entering the server. lobby-items: enable: true join-server: true respawn: true join-world: true use-spawn-radius: false world:

PilgrimViis commented 2 years ago

Thank you very much for your help and a great plugin! It helped.