#pls help me fix this

1 messages · Page 1 of 1 (latest)

heavy crest
#

vault_button_1:
slot: 24
material: PAPER
display_name: "ᴜѕᴇ ᴛʜɪѕ"
lore:
- "ᴛᴏ ɪɴᴛᴇʀᴀᴄᴛ ᴡɪᴛʜ ᴛʜᴇ ᴠᴀᴜʟᴛ"
click_commands:
- '[console] lp user %player_name% permission set vault.1'
view_requirement:
requirements:
no_vault_1:
type: has permission
permission: vault.1
value: false

vault_button_2:
slot: 24
material: PAPER
display_name: "&a✔ ᴠᴀᴜʟᴛ 1 ᴄʟᴀɪᴍᴇᴅ"
lore:
- "&7Click to unlock &fvault.2"
click_commands:
- '[console] lp user %player_name% permission set vault.2'
view_requirement:
requirements:
has_vault_1:
type: has permission
permission: vault.1
value: true

when a player has no perms neither piece of paper shows up, why?

#

i assume it might be cuz i have 2 items in 1 slot and it only registers the last one then

#

im tryna make a level up system so how can i make it so when u the output, title and lore change of the button based on players perms

soft crescent
#

I've tried to fix your example.

#

Please next time use a paste bin service to send config snippets. Discord breaks the formatting.

heavy crest
#

damnn it does work but when i click it the console command doesnt excecute

#

im not done with it yet, what i did was just make the first thing in the vault unlock once u get the perm

#

but the paper doesnt work, when i click it nothing happens

#

if i have the perm everything works fine, the paper changes and i get the upgrade

soft crescent
heavy crest
soft crescent
heavy crest
#

at tge bottom

#

vault_buttom 1 and 2

#

slot 24

soft crescent
# heavy crest the paper

Just to make sure I understand, you see this item: ᴜѕᴇ ᴛʜɪѕ ᴛᴏ ɪɴᴛᴇʀᴀᴄᴛ ᴡɪᴛʜ ᴛʜᴇ ᴠᴀᴜʟᴛ but when you click on it, you don't get the permission?

#

Or does it give the permission but doesn't change the item

#

If it is the second issue and not the first, then simply add this action to your items [refresh]

heavy crest
#

i dont get a permsission

soft crescent
#

Can you add a message as well and see if that gets sent?

heavy crest
#

good idea

#

wait i might have fixed it

#

i just realised i did the spacing wrong

#

sorry for wasting ur time

soft crescent
#

No worries

heavy crest
#

it only shows up if i close it and reopen the menu again

#

the button only changes then

#

how do i make it reload the menu on click

#

this doesnt work:

  -  '[console] lp user %player_name% permission set vault.1'
  -  '[close]'
  -  '[opengui] shardtoken'
soft crescent
heavy crest
heavy crest
#

@soft crescent is there a limit of how many buttons i can have on one slot?

#

cuz after 5 it stops working

soft crescent
#

If it stops working, my guess is there's something broken in the setup

heavy crest
#

👍