#Problem with script

1 messages · Page 1 of 1 (latest)

brittle jungle
#

Hi everyone, can you please help me, i cant understand whats wrong with my script

  material: GRAY_DYE
  slot: 47
  priority: 0
  display_name: '&7Bachelor Kit &8(Unavailable)'
  lore:
    - '&7This kit is only available'
    - '&7to players with the &eBachelor &7rank.'
  view_requirement:
    requirements:
      no_permission:
        type: '!has_permission'
        permission: essentials.kits.parubock
  right_click_commands:
    - '[sound] ENTITY_VILLAGER_NO'
    - '[message] &cYou don’t have access to this kit!'

#2
'kit_cooldown':
  material: PURPLE_DYE
  slot: 47
  priority: 1
  display_name: '&5Bachelor Kit &8(On Cooldown)'
  lore:
    - '&7You have already claimed this kit.'
    - '&7Wait &c%essentials_kit_cooldown_parubock_formatted% &7before claiming it again.'
  view_requirement:
    requirements:
      has_permission:
        type: has_permission
        permission: essentials.kits.parubock
      on_cooldown:
        type: '!string equals'
        input: '%essentials_kit_delay_parubock%'
        output: '0'
  right_click_commands:
    - '[sound] BLOCK_NOTE_BLOCK_BASS'
    - '[message] &eYou can’t claim this kit yet. Wait: &c%essentials_kit_cooldown_parubock_formatted%'

#3
'kit_ready':
  material: LIME_DYE
  slot: 47
  priority: 2
  display_name: '&aBachelor Kit &8(Ready)'
  lore:
    - '&7Click to claim your starter kit.'
    - ''
    - '&a:heavy_check_mark: Available now!'
  view_requirement:
    requirements:
      has_permission:
        type: has_permission
        permission: essentials.kits.parubock
      ready_check:
        type: 'string equals'
        input: '%essentials_kit_delay_parubock%'
        output: '0'
  right_click_commands:
    - '[player] kit парубок'
    - '[sound] ENTITY_PLAYER_LEVELUP'
    - '[message] &aYou have claimed the starter kit!'```
#

Im trying to create a logic in menu in a way that if the player doesnt have the rank he wont be able to get a kit,if the kit is on cooldown the other thing will be showed and another if its available

warped lodge
#

Im not sure, but maby the _ in
type: has_permission
I allways do it without.

brittle jungle
#

Thanks! It worked