LMBishop / Quests

Questing plugin for Minecraft, enabling the addition of goals for players.
https://www.spigotmc.org/resources/23696/
GNU General Public License v3.0
174 stars 84 forks source link

Folia Async command error #601

Closed DarkyG2 closed 8 months ago

DarkyG2 commented 8 months ago

Description of Bug

When doing this :

custom-elements:
  "categories": # apply to the category "examples"
    2:
      display:
        name: "&cTutoriel"
        lore:
          - "&7Terminez les quêtes tutoriel pour"
          - "&7accéder à toutes les autres quêtes."
        type: "EMERALD_BLOCK"
      commands: 
        - "quests c tutorial_farming"

I'm getting this error: https://pastebin.com/Zn1mq4yc and the command isn't executed

Steps to Reproduce

  1. use that config and click on it:
    custom-elements:
    "categories": # apply to the category "examples"
    2:
      display:
        name: "&cTutoriel"
        lore:
          - "&7Terminez les quêtes tutoriel pour"
          - "&7accéder à toutes les autres quêtes."
        type: "EMERALD_BLOCK"
      commands: 
        - "quests c tutorial_farming"

Environment

Agreements

Other

I'm on Folia 1.20.4

Krakenied commented 8 months ago

Firstly, quests c tutorial_farming is not the proper command. Commands from that config option are dispatched with sender set to console sender, so q a opengui category {player} tutorial_farming is the one that should be used.

Try with this build https://github.com/LMBishop/Quests/actions/runs/7856813739/artifacts/1235742749

DarkyG2 commented 8 months ago

Can confirm it fixed my issue !