#Permissions menu
1 messages · Page 1 of 1 (latest)
#general-plugins message already answered ✅
Hello,
I want to ask about one more thing: "!has permission"
How does it actually work?
it will check if the player doesnt have the given requirement
if you remove !, it will check if the player has the given requirement
Sure, but I'm making a menu like this to upgrade the island. And I want the player to improve it gradually. Therefore, I want, if he does not have permission for the given upgrade, so that the item is closed, for example, by a barrier.
you can create a new item set with material barrier with no requirements. but make sure the priority of this new item is lower than the item with material glass
you will also need to replace the click_requirement of the item with material glass to view_requirement
How can I secure that priority?
add priority: <value> below the slot:
basically the item with material glass will have the priority: 1
basically the item with material barrier will have the priority: 2
so it'll check if you meet view requirement of item with material glass first. if no then it'll display you item with material barrier
😭 im tired of writing it.
xD
https://paste.helpch.at/kusivayisu.vbnet For some reason it doesn't take that barrier. Don't you see an error in the code?
priority 1 will be checked first. if the requirement is met it would skip the next item in that same slot
priority 1 > priority 2
also you have set same item name for locked items
Okay, I get this
set priority of '20x20': to 2
and priority 1 for 'locked':
wait
after making these changes, you'll only see locked item
the menu seems to be correct
you dont need to make changes other than the same item name
oka nice
?
you forgot to set the view requirement for the glass item
view_requirement:
requirements:
has_money:
type: has money
amount: 3000
add this above left_click_requirement of your glass item
then it should be okay
copy paste requirements: of left_click_requirement: to view_requirement: