#Question about Click Commands in JobsReborn

1 messages · Page 1 of 1 (latest)

brittle veldt
#

Hello, I have a question regarding the menu I created:

How can I prevent "click_commands" from executing anything? If I simply remove the "click_commands" section, my configuration stops working correctly.

For a bit more context, my configuration is based on an item for job joining/exit and job limits using the JobsReborn plugin.

My config:

items:
  # === MINER ===
  miner_available:
    material: golden_pickaxe
    slot: 10
    priority: 1
    item_flags:
      - HIDE_ATTRIBUTES
    display_name: "&#9F89E5&lᴍɪɴᴇʀ &8• &7(ᴡᴏʀᴋᴇʀs &f%jobsr_totalplayers_minero%&7)"
    lore:
      - ""
      - "&7Earn money and job points"
      - "&7by breaking ores of any type."
      - ""
      - "&7Level: &f%jobsr_user_jlevel_minero%&7/&f%jobsr_maxlvl_minero%"
      - "&7Next level: &#F19C0B%jobsr_user_jexp_minero%/%jobsr_user_jmaxexp_minero% EXP"
      - "%progress_bar_{jobsr_user_jexp_minero}_c:&a&l▀_p:&a&l▀_r:&7&l▀_l:12_m:{jobsr_user_jmaxexp_minero}_fullbar:&8&l▀▀▀▀▀▀▀▀▀▀▀▀%"
      - ""
      - "&7Paid actions:"
      - "&7- &fBreaking ores with TNT or a pickaxe"
      - ""
      - "%utils_parse_changeoutput_equals_input:{jobsr_user_joinedjobcount}_matcher:{jobsr_maxjobs}_ifmatch:&6⚠ You have reached the job limit!\n\n&c► Click to leave!_else:{changeoutput_equals_input:{jobsr_user_isin_minero}_matcher:§6True_ifmatch:&c► Click to leave!_else:&e► Click to join!}%"
    click_requirement:
      requirements:
        requirement-1:
          type: string equals
          input: "%jobsr_user_isin_minero%"
          output: "§cFalse"
          success_commands:
            - "[player] jobs join minero"
            - "[refresh]"
          deny_commands:
            - "[player] jobs leave minero"
            - "[refresh]"
    click_commands:
      - ""
obsidian yoke
#

Im not sure, however success_commands: needs to be removed

    click_requirement:
      requirements:
        requirement-1:
          type: string equals
          input: "%jobsr_user_isin_minero%"
          output: "§cFalse"
          deny_commands:
            - "[player] jobs leave minero"
            - "[refresh]"
    click_commands:
      - "[player] jobs join minero"
      - "[refresh]"
#

success_commands: is the same as click_commands but it doesn't work (I'm pretty sure)

brittle veldt
obsidian yoke
#

np

brittle veldt
# obsidian yoke np

Hello, what do you think about the logic of this configuration?

overworld:
  material: grass_block
  slot: 12
  update: true
  display_name: "&a&lᴍᴜɴᴅᴏ ѕᴜʀᴠɪᴠᴀʟ"
  lore:
    - ""
    - "&7Information:"
    - "&8 - &fWorld Border: &e15k x 15k"
    - "&8 - &fDifficulty: &eNormal"
    - "&8 - &fPvP: &aEnabled"
    - "&8 - &fPlayers: &b%server_online_world%"
    - ""
    - "%changeoutput_equals_input:{betterrtp_canrtpcooldown_world}_matcher:yes_ifmatch:&e► Click to teleport._else:&c► You must wait the indicated time.%"
  left_click_requirement:
    requirements:
      requirement-1:
        type: string equals
        input: "%betterrtp_canrtpcooldown_world%"
        output: "yes"
        success_commands:
          - "[player] rtp world world"
        deny_commands:
          - "[message] You must wait the indicated time."
  left_click_commands:
    - "[close]"

I am using the BetterRTP random teleport plugin, and its variable shown in the configuration returns these values:

CanRTP:
  Success: 'yes'
  NoPermission: '&cNo Permission'
  Cooldown: cooldown
  Price: '&cNo. &7Reason: &eNo funds'
  Hunger: '&cNo. &7Reason: &3Hungry'
#

Could you also give me a suggestion to see if the structure of my configuration is correct? @thorn cedar

thorn cedar
thorn cedar
#

as long as you have at least 1 valid left click command.

obsidian yoke
brittle veldt
#

Thank you for the suggestions. I was wondering if it looks good now? By the way, is it possible to insert a line break within the changeoutputs? @thorn cedar @thorn cedar

overworld:
  material: grass_block
  slot: 12
  update: true
  display_name: "%changeoutput_equals_input:{betterrtp_canrtpcooldown_world}_matcher:yes_ifmatch:&a&lSURVIVAL WORLD_else:&c&lSURVIVAL WORLD%"
  lore:
    - ""
    - "&7Information:"
    - "&8 - &fWorld Border: &e15k x 15k"
    - "&8 - &fDifficulty: &eNormal"
    - "&8 - &fPvP: &aEnabled"
    - "&8 - &fPlayers: &b%server_online_world%"
    - ""
    - "%changeoutput_equals_input:{betterrtp_canrtpcooldown_world}_matcher:yes_ifmatch:&e► Click to teleport._else:&cℹ Please wait &f{betterrtp_cooldown_world}&c.%"
  left_click_requirement:
    requirements:
      requirement-1:
        type: string equals
        input: "%betterrtp_canrtpcooldown_world%"
        output: "yes"
        deny_commands:
          - "[message] &cYou must wait &f%betterrtp_cooldown_world%&c before using RTP again."
          - "[sound] ENTITY_VILLAGER_NO"
          - "[close]"
  left_click_commands:
    - "[player] rtp world world"
    - "[close]"
thorn cedar
#

It will 100% not work in the display_name though. That supports 1 line only

brittle veldt
thorn cedar
#

Try the latest build from Jenkins. There should be a fix for it

brittle veldt