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
170 stars 83 forks source link

Incorrect display of PAPI #312

Open Thin-Troll opened 2 years ago

Thin-Troll commented 2 years ago

Description of Bug

image Incorrect display of PAPI none of the placeholders in the screenshot work.. they do not give any result at all, the other placeholders work without problems.

image I have to take the quest, but when I call the substitute, I always get the answer: No tracked quest

Steps to Reproduce

  1. Take the quest
  2. command enter /papi parse Thin_Troll %quests_tracked%

Environment

Agreements

Other

No response

Whitescan commented 1 year ago

The QuestID from QPlayer#getPlayerPreferences#getTrackedQuestId always returns null. So it's not the placeholders but the quest tracking logic. Debug says:

[21:19:32 INFO]: [Quests] DEBUG: Player 1afc04ab-6332-4982-804e-d29caf155737 has a valid quest progress file.
[21:19:32 INFO]: [Quests] DEBUG: Quest progress file loaded for player 1afc04ab-6332-4982-804e-d29caf155737.
[21:19:32 INFO]: [Quests] DEBUG: Processing player (full check) 1afc04ab-6332-4982-804e-d29caf155737

Unsure where it goes south. I'm trying to investigate further, but I find alot of the code parts rather confusing...

LMBishop commented 1 year ago

Tracked quests aren't persisted across sessions, perhaps this is the issue