#Hey guys i really need help ! 1.20.1

1 messages · Page 1 of 1 (latest)

untold fossil
#

Hey guys, i want to ask why its not working to me the deluxemenu fine, i mean i have a lot bugs and i cant find why.

For example i use this code for a gui menu but when ppl bought something its still that he can bought the same item unlimited. I have the same problem with the gui menu for the levelup, ppl can click at the level up unlimited times and get the rewards infinite times. So please help me someone !

#
# A full wiki on how to use this plugin can be found at:
# https://wiki.helpch.at/clips-plugins/deluxemenus

debug: false
check_updates: true
gui_menus:
  
  playtime:
    file: playtime.yml
  playtime2:
    file: playtime2.yml
  
  coinshop:
    file: coinshop.yml
  coinshop-cratekeys:
    file: coinshop-cratekeys.yml
  coinshop-playertags:
    file: coinshop-playertags.yml
  coinshop-chatcolors:
    file: coinshop-chatcolors.yml
  coinshop-ranks:
    file: coinshop-ranks.yml
  coinshop-particles:
    file: coinshop-particles.yml
  coinshop-emotes:
    file: coinshop-emotes.yml
  coinshop-pets:
    file: coinshop-pets.yml
  coinshop-playerwarps:
    file: coinshop-playerwarps.yml
  coinshop-flighttime:
    file: coinshop-flighttime.yml
  coinshop-sellwands:
    file: coinshop-sellwands.yml
  coinshop-claimblocks:
    file: coinshop-claimblocks.yml
  
  cosmetics:
    file: cosmetics.yml
  cosmetics-particles:
    file: cosmetics-particles.yml
  cosmetics-emotes:
    file: cosmetics-emotes.yml
  cosmetics-pets:
    file: cosmetics-pets.yml
  
  links:
    file: links.yml
  vote:
    file: vote.yml
  ranks:
    file: ranks.yml
  tutorial:
    file: tutorial.yml
  levelgui:
    file: levelgui.yml
  teams:
    file: teams.yml
  stats:
    file: stats.yml
  jobs:
    file: jobs.yml
  sellwands:
    file: sellwands.yml
  daily:
    file: daily.yml
  quests:
    file: quests.yml
#
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjA2MmQ4ZDcyZjU4OTFjNzFmYWIzMGQ1MmUwNDgxNzk1YjNkMmQzZDJlZDJmOGI5YjUxN2Q3ZDI4MjFlMzVkNiJ9fX0=
    slot: 10
    priority: 2
    display_name: "&c&lRed Chat Color"
    lore:
      - "&8VoteShop Item"
      - ""
      - "&6◈ &fCost: &6150 Coins"
      - ""
      - "&a&l➥ CLICK TO PURCHASE"
      - ""

    click_commands:
      - '[givepermission] ezcolors.color.red'
      - '[console] av user %player_name% RemovePoints 150'

      - '[message] &8&l[&a&l!&8&l] &#7AFE77You successfully bought the &fRed &#7AFE77Chat Color!'
      - '[close]'

    click_requirement:
      requirements:
        check_balance:
          type: '>='
          input: '%votingplugin_points%'
          output: '150'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough coins to purchase this item!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou need &f150 &#FF7C7Cbut you only have &f%votingplugin_points_format%&#FF7C7C."
            - '[close]'

  'red-purchased':
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjA2MmQ4ZDcyZjU4OTFjNzFmYWIzMGQ1MmUwNDgxNzk1YjNkMmQzZDJlZDJmOGI5YjUxN2Q3ZDI4MjFlMzVkNiJ9fX0=
    slot: 10
    priority: 1
    display_name: "&c&lRed Chat Color"
    lore:
      - "&8VoteShop Item"
      - ""
      - "&aPurchased"
      - ""
    click_commands:
      - '[message] &8&l[&a&l!&8&l] &#7AFE77You already have the &fRed &#7AFE77Chat Color!'
      - '[refresh]'

    view_requirement:
      requirements:
        check_purchase:
          type: 'has permission'
          permission: 'ezcolors.color.red'
#

  # -- #   LEVEL 1   # -- #
  'level-1':
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2M0ZDdhM2JjM2RlODMzZDMwMzJlODVhMGJmNmYyYmVmNzY4Nzg2MmIzYzZiYzQwY2U3MzEwNjRmNjE1ZGQ5ZCJ9fX0=
    slot: 10
    priority: 2
    update: true
    display_name: "&#cf4242&lLevel 1"
    lore:
      - ""
      - "&#f80026Requirement:"
      - "&8&l| &f1 Hour of Playtime"
      - ""
      - "&#3ae108Rewards:"
      - "&8&l| &f5 Minutes Flight Time"
      - "&8&l| &f$750"
      - "&8&l| &f10 Coins"
      - ""
      - "&#fcfc54&l➥ CLICK TO REDEEM"

    click_requirement:
      requirements:
        playtime:
          type: '>='
          input: '%statistic_hours_played%'
          output: '1'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough playtime to rankup to this level!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou only have &f%statistic_hours_played% hour(s)&#FF7C7C."

    click_commands:
      - '[givepermission] meta.playtimelevels.1'

      - '[console] tempfly add %player_name% 300'
      - '[console] eco give %player_name% 750'
      - '[console] points give %player_name% 10'

      - "[broadcast] &f"
      - "[broadcast] &8&l[&a&l!&8&l] &#57FF6B%player_name% is now Level 1! &7(/playtime)"
      - "[broadcast] &f"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"
      - "[refresh]"
#
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTY3YTJmMjE4YTZlNmUzOGYyYjU0NWY2YzE3NzMzZjRlZjliYmIyODhlNzU0MDI5NDljMDUyMTg5ZWUifX19
    slot: 10
    priority: 1
    update: true
    display_name: "&#cf4242&lLevel 1"
    view_requirement:
      requirements:
        claimed:
          type: has permission
          permission: 'meta.playtimelevels.1' 
    lore:
      - ""
      - "&#f80026Requirement:"
      - "&8&l| &f1 Hour of Playtime"
      - ""
      - "&#3ae108Rewards:"
      - "&8&l| &f5 Minutes Flight Time"
      - "&8&l| &f$750"
      - "&8&l| &f10 Coins"
      - ""
      - "&#FF3B3B&l➥ THIS REWARD HAS BEEN CLAIMED"```
gritty skiff
#

duplicate and invert your view requirement for the purchased item and add it to your click requirements

#

so you have extra security

#
    click_requirement:
      requirements:
        playtime:
          type: '>='
          input: '%statistic_hours_played%'
          output: '1'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough playtime to rankup to this level!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou only have &f%statistic_hours_played% hour(s)&#FF7C7C."
        claimed:
          type: '!has permission'
          permission: 'meta.playtimelevels.1' 
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou already ranked up to this level!"
#

like this

untold fossil
#

so like this, right ?

#
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2M0ZDdhM2JjM2RlODMzZDMwMzJlODVhMGJmNmYyYmVmNzY4Nzg2MmIzYzZiYzQwY2U3MzEwNjRmNjE1ZGQ5ZCJ9fX0=
    slot: 10
    priority: 2
    update: true
    display_name: "&#cf4242&lLevel 1"
    lore:
      - ""
      - "&#f80026Requirement:"
      - "&8&l| &f1 Hour of Playtime"
      - ""
      - "&#3ae108Rewards:"
      - "&8&l| &f5 Minutes Flight Time"
      - "&8&l| &f$750"
      - "&8&l| &f10 Coins"
      - ""
      - "&#fcfc54&l➥ CLICK TO REDEEM"

    click_requirement:
      requirements:
        playtime:
          type: '>='
          input: '%statistic_hours_played%'
          output: '1'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough playtime to rankup to this level!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou only have &f%statistic_hours_played% hour(s)&#FF7C7C."
        claimed:
          type: '!has permission'
          permission: 'meta.playtimelevels.1' 
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou already ranked up to this level!"

    click_commands:
      - '[givepermission] meta.playtimelevels.1'

      - '[console] tempfly add %player_name% 300'
      - '[console] eco give %player_name% 750'
      - '[console] points give %player_name% 10'

      - "[broadcast] &f"
      - "[broadcast] &8&l[&a&l!&8&l] &#57FF6B%player_name% is now Level 1! &7(/playtime)"
      - "[broadcast] &f"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"
      - "[refresh]"
#
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTY3YTJmMjE4YTZlNmUzOGYyYjU0NWY2YzE3NzMzZjRlZjliYmIyODhlNzU0MDI5NDljMDUyMTg5ZWUifX19
    slot: 10
    priority: 1
    update: true
    display_name: "&#cf4242&lLevel 1"
    view_requirement:
      requirements:
        claimed:
          type: has permission
          permission: 'meta.playtimelevels.1' 
    lore:
      - ""
      - "&#f80026Requirement:"
      - "&8&l| &f1 Hour of Playtime"
      - ""
      - "&#3ae108Rewards:"
      - "&8&l| &f5 Minutes Flight Time"
      - "&8&l| &f$750"
      - "&8&l| &f10 Coins"
      - ""
      - "&#FF3B3B&l➥ THIS REWARD HAS BEEN CLAIMED"```
untold fossil
#

and with what plugin its working the deluxe menu because i think its not working to me fine.

untold fossil
#

its that possible ? the deluxemenu its not supported the Ultrapermission plugin?

gritty skiff
#

I believe ultrapermissions provides placeholders

#
    view_requirement:
      requirements:
        claimed:
          type: string equals
          input: '%uperms_has_permission_meta.playtimelevels.1%'
          output: 'yes'

for example

#

and use the uperms commands to give/take perms as well probably

analog mantle
#

ultra permissions 🤢

untold fossil
#

okey i fount how its work but i have a last question.

    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTY3YTJmMjE4YTZlNmUzOGYyYjU0NWY2YzE3NzMzZjRlZjliYmIyODhlNzU0MDI5NDljMDUyMTg5ZWUifX19
    slot: 10
    priority: 1
    update: true
    display_name: "&#cf4242&lLevel 1"
    view_requirement:
      requirements:
        claimed:
          type: has permission
          permission: 'meta.playtimelevels.1' 
    lore:
      - ""
      - "&#f80026Requirement:"
      - "&8&l| &f1 Hour of Playtime"
      - ""
      - "&#3ae108Rewards:"
      - "&8&l| &f5 Minutes Flight Time"
      - "&8&l| &f$750"
      - "&8&l| &f10 Coins"
      - ""
      - "&#FF3B3B&l➥ THIS REWARD HAS BEEN CLAIMED"```

how can i put on this code that ppl can take the rewards when they have 1h play time and + 50 votes time ? 

%votingplugin_total_alltime%
gritty skiff
#
    click_requirement:
      requirements:
        playtime:
          type: '>='
          input: '%statistic_hours_played%'
          output: '1'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough playtime to rankup to this level!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou only have &f%statistic_hours_played% hour(s)&#FF7C7C."
        check_balance:
          type: '>='
          input: '%votingplugin_total_alltime%'
          output: '50'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough coins to purchase this item!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou need &f150 &#FF7C7Cbut you only have &f%votingplugin_points_format%&#FF7C7C." #Change the message here
            - '[close]'
untold fossil
#

okey i will try it now, thanks you