#Change the item on a slot by clicking on it
1 messages · Page 1 of 1 (latest)
Yes you can, set the view_requirment to the green dye with a permission for ex
permission: view_green_dye and exact the same thing to the grey_dye
and just go to click_commands: and type
lp user %name% permission set <perm>
Im stuck, its really complicated. Can you maybe help me? This is what I got now:
`'flags_fly_true':
displayname: '&8&l➜ Plot Fly &aAktivieren'
material: GREEN_DYE
slot: 10
view_requirement:
requirements:
flags_fly_true:
type: has permission
permission: fly_true
click_commands:
- [console] 'lp user %player_name% permission set fly_false'
- [console] 'lp user %player_name% permission remove fly_true'
'flags_fly_false':
displayname: '&8&l➜ Plot Fly &cDeaktivieren'
material: GREY_DYE
slot: 10
view_requirement:
requirements:
flags_fly_false:
type: has permission
permission: fly_false
click_commands:
- [console] 'lp user %player_name% permission set fly_true'
- [console] 'lp user %player_name% permission remove fly_false'`
Maybe I should work with [givepermission] instead of using luckperms and the console😅
Nvm, doesnt helped me either yet
@carmine scaffold ?
you have luckperms installed, right?
Sure
?
This doesnt work but I cant find the error
give urself one of the perms
the menu doesn't open cuz there aren't any items that u can see
There are items
But the menu doesnt load
Well, deluxemenus doesnt load it, because there is something wrong, maybe a syntex error
Yes😅
send me the menu
whole menu
I fixed all the errors u had
try it
And if u ever have errors use this site
https://www.yamllint.com/
Validate, Verify and Reformat your YAML documents, optimized for Ruby on Rails
.
Checked it already on another side
Nope
o-0
You used this menu?
Ahh, sry
I overlooked the menu
My bad
Now the menu loaded, but the item doesnt work. I got the grey_dye but after clicking on it, I only got the perm but nothing else was changed
try adding - '[close]'
Nope, then the menu will close
Add - '[refresh]' if u don't want close
Doesnt work
deluxemenus version?
1.14.0-Release
first of all, luckperms has a feature that can't let run many commands at a time, it could be a part of a problem, try making a delay for one of commands so one will execute after another with a small delay and then add refresh, or just simply make it easier: just remove default permission (false one) cos it's not really needed, you just want to check for true one
just set the false button to parse player like this:
type: !has permission permission: fly_true