Problem/Bug Quests event error

Discussion in 'Plugin Help/Development/Requests' started by gdavid, Dec 28, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    gdavid

    The error:
    Code:
    [11:31:27 ERROR]: §6[Quests] §cLUCK§6 inside §a lightning-strikes: §6inside Event §5return§6 is not a valid potion effect name!
    [11:31:27 ERROR]: [Quests] Failed to load Event "return". Skipping.
    The events file:
    Code:
    events:
      DeathFail:
        fail-quest: true
      return:
        message: Látom, sikeresen teljesítetted a küldetést. Ezért jutalmat érdemelsz.
        potion-effect-types:
          - LUCK
          - GLOWING
        potion-effect-durations:
          - 1200
          - 40
        potion-effect-amplifiers:
          - 3
          - 1
    
     
  2. Offline

    timtower Moderator Moderator

    @gdavid Put single quotes around the message value
     
  3. Offline

    gdavid

    I tried it.
    Still the same error.
    My events.yml:
    Code:
    events:
      DeathFail:
        fail-quest: true
      return:
        message: 'Látom, sikeresen teljesítetted a küldetést. Ezért jutalmat érdemelsz.'
        potion-effect-types:
          - LUCK
          - GLOWING
        potion-effect-durations:
          - 1200
          - 40
        potion-effect-amplifiers:
          - 3
          - 1
    
    EDIT: It works without quotes if i remove potion effects, but i need to give potion effects.
     
    Last edited: Dec 28, 2016
Thread Status:
Not open for further replies.

Share This Page