#Permissions for open-command
1 messages · Page 1 of 1 (latest)
you can make an optional open_requirement with success_commands
open_requirement:
requirements:
permission:
type: has permission
permission: my.permission
success_commands:
- "[message] You have the permission!"
but then, if I do not have the my.permission permisson, the menu will not open for me even if the console tries to open it using the /dm open <menu> <player> command
open_requirement:
requirements:
permission:
type: has permission
permission: my.permission
optional: true
success_commands:
- "[message] You have the permission!"
forgot to add the optional: true line, my bad
what does the optional do?
@pseudo dust , it does not help.
if optional: true is added, i can use the open_command without the permission
that's why I told you to use the success_commands and not the open_commands
oh
oooooh
I understand the issue
I thought you didn't want to run the open_commands
not open_commands