PikaMug / Quests

Easy-to-use, open-source plugin for the creation and execution of quests on Minecraft servers.
https://modrinth.com/plugin/quests.classic
MIT License
147 stars 108 forks source link

When crafting Items, unable to craft anything when quest starts. Only when it ends. #2257

Closed Reflect-good closed 2 months ago

Reflect-good commented 2 months ago

What is your Quests version / build number (do not say "latest")?

5.0.6-b491

Describe the problem and how to replicate it.

A quest is given to craft 8 flint and steels, after quest starts, they are unable to craft anything.

Any console errors to share?

only this: java.lang.NullPointerException: null
after they try and craft an item.

If applicable, can you provide an example quest from quests.yml?

quests:
  '000001':
    name: obsidian
    ask-message: Challenge objectives!
    finish-message: Well done!
    npc-giver-uuid: 4722279f-a2a4-49c1-b3c7-187507c6055a
    stages:
      ordered:
        '1':
          break-block-names:
          - OBSIDIAN
          break-block-amounts:
          - 192
          break-block-durability:
          - 0
        '2':
          break-block-names:
          - CRYING_OBSIDIAN
          break-block-amounts:
          - 16
          break-block-durability:
          - 0
        '3':
          items-to-craft:
          - ==: org.bukkit.inventory.ItemStack
            v: 3953
            type: FLINT_AND_STEEL
            amount: 8
        '4':
          items-to-craft:
          - ==: org.bukkit.inventory.ItemStack
            v: 3953
            type: CONDUIT
        '5':
          break-block-names:
          - TORCHFLOWER
          break-block-amounts:
          - 1
          break-block-durability:
          - 0
    rewards:
      permissions:
      - nether.portal
      - multiverse.portal.access.nether
      - multiverse.portal.access.portal
      permission-worlds: []
    planner:
      override: false
    options:
      allow-commands: true
      allow-quitting: true
      ignore-silk-touch: true
      use-parties-plugin: true
      share-progress-level: 1
      same-quest-only: true
      share-distance: 0.0
      handle-offline-players: false
      ignore-block-replace: true
PikaMug commented 2 months ago

I tested your quest and had no trouble crafting Flint and Steel on any of the stages. Make sure that your players have available inventory space to craft.

That exception type should have a stacktrace (more text) associated with it. If you still need assistance, post the full text below.

Reflect-good commented 2 months ago

All I see on my end is "NULL" in actionbar, when trying to craft, i'm not sure whether its another plugin but all i know is that when that specific quest is enabled, that shows up.

PikaMug commented 2 months ago

All I see on my end is "NULL" in actionbar, when trying to craft, i'm not sure whether its another plugin but all i know is that when that specific quest is enabled, that shows up.

That's probably the new string telling you your inventory is full https://github.com/PikaMug/Quests/commit/10880e8a2edb45aa9edd9348ad42b6a881562608

You can try regenerating your /lang folder, but if the string hasn't been translated to your language yet, you'll have to wait until the next release.