#Cooldown not working ... (With MasterCooldowns)

1 messages · Page 1 of 1 (latest)

drowsy kiln
#

I'm using a menu, that uses different menu elements (custom icons) when you claimed a reward already.

#

Here it is.

#

And its not working..

#
  "dailykey_cooldown":
    material: YELLOW_WOOL
    model_data: 1
    slot: 2
    priority: 1
    update: true
    display_name: "&#d49606&lNapi Kulcs &8- &cTöltés alatt..."
    lore:
     - ""
     - " &f┏ &7Tartalom:"
     - " &f┣ &8- &7[&f1x&7] &fPrémium Ládakulcs"
     - " &f┃"
     - " &f┣ &7Begyűjthető: &fNaponta"
     - " &f┃"
     - " &f┣ &7Elérhető ennyi idő múlva:"
     - " &f┗  &a%mcd_left_formatted_dailykey% "
    view_requirement:
      requirements:
        permission:
          type: has permission
          permission: dailykey.king
        available:
          type: string equals ignorecase
          input: "%mcd_isactive_dailykey%"
          output: "Yes"
    click_commands:
    - "[sound] ENTITY_ITEM_FRAME_ROTATE_ITEM"
    - "[message] &0"
    - "[message] &cSajnos még nem gyűjtheted be a napi kulcsod."
    - "[message] &c(Ha a visszaszámláló lejárta után kattintottál, akkor most frissült a menü.)"
    - "[message] &0"
    - "[close]"
#
  "dailykey_available":
    material: GREEN_WOOL
    model_data: 1
    slot: 2
    priority: 2
    display_name: "&#d49606&lNapi Kulcs &8- &aElérhető"
    lore:
     - ""
     - " &f┏ &7Tartalom:"
     - " &f┣ &8- &7[&f1x&7] &fPrémium Ládakulcs"
     - " &f┃"
     - " &f┣ &7Begyűjthető: &fNaponta"
     - " &f┃"
     - " &f┣ &7Elérhető ennyi idő múlva:"
     - " &f┗  &aMOST "
     - ""
     - "&f▶ &a&lKatt a begyűjtéshez!"
    view_requirement:
      requirements:
        permission:
          type: has permission
          permission: dailykey.king
        available:
          type: string equals ignorecase
          input: "%mcd_isinactive_dailykey%"
          output: "No"
    click_commands:
     - "[message] &0"
     - "[console] mcd add %player_name% dailykey 20"
     - "[message] &6&lBertron: &aSikeres művelet! Tessék... A napi kulcsod!"
     - "[sound] ENTITY_HORSE_ARMOR"
     - "[close]"
#
"dailykey_locked":
    material: RED_WOOL
    model_data: 1
    slot: 2
    priority: 3
    display_name: "&#d49606&lNapi Kulcs &8- &4Zárolva"
    lore:
     - ""
     - " &f┏ &7Tartalom:"
     - " &f┣ &8- &7[&f1x&7] &fPrémium Ládakulcs"
     - " &f┃"
     - " &f┣ &7Begyűjthető: &fNaponta"
     - " &f┃"
     - " &f┣ &7Elérhető:"
     - " &f┗  &eKIRÁLY &frangtól "
    click_commands:
     - "[sound] ENTITY_GENERIC_EXPLODE"
#

So here is my menu

#

The first is when its on cooldown

#

The second is when its avaiable

#

And the third is basically "closed" due to lack of permission

#

My problem is it always returns the third one

#

As you see there

#

How should i do it?

sharp mason
#

?dm-cooldown