Blackvein / Quests

Quests mod for Spigot
31 stars 35 forks source link

break-block quests are duplicating after relog #517

Closed frendlyZ closed 7 years ago

frendlyZ commented 7 years ago

Hello,

I have a big problem, when player takes quest, where he has to break or place blocks and he disconnect, it duplicates. So he doesn't have to mine or place 64 stones once, but twice and the duplicated quest doesn't count, so it's not possible to complete the quest.

ghost commented 7 years ago

I believe I have the same or a similar issue. When a player relogs, the quest journal shows progress for block break requirements as 0, but this is what their data file looks like:

- Catch Fish
- Lawnmower
currentStages:
- 0
- 0
quest-points: 2
questData:
  Catch Fish:
    fish-caught: 2
    chat-triggers:
    - rod
  Lawnmower:
    blocks-broken-names:
    - LONG_GRASS
    - LONG_GRASS
    - LONG_GRASS
    - LONG_GRASS
    - LONG_GRASS
    - LONG_GRASS
    blocks-broken-amounts:
    - 0
    - 37
    - 37
    - 37
    - 37
    - 37
    blocks-broken-durability:
    - 1
    - 0
    - 0
    - 0
    - 0
    - 0

This is what the Lawnmower quest looks like:

    name: Lawnmower
    ask-message: Break 1000 blocks of grass.
    finish-message: '&aQuest complete!'
    stages:
      ordered:
        '1':
          break-block-names:
          - LONG_GRASS
          break-block-amounts:
          - 1000
          break-block-durability:
          - 1
    rewards:
      money: 25
      quest-points: 2
frendlyZ commented 7 years ago

Did you somehow fix it?

LeZalox commented 7 years ago

Same problem on every version of Quests I run.

PikaMug commented 7 years ago

@frendlyZ Quests version?

frendlyZ commented 7 years ago

2.7.*

PikaMug commented 7 years ago

@frendlyZ The asterisk is not sufficient. Please post the entire version number.

frendlyZ commented 7 years ago

It does on every 2.7 version, I have 2.7.6 now