## Players with 'example.diamond' permission## can get a diamond by clicking the buttondiamond_button:type:buttonsize:256 128color:greenon-click:give_function:type:commandexecute-from-console:truecommand:'minecraft:give %player_name% diamond 1'conditions:perm1:type:permissionpermission:example.diamondno_perm:type:send_messagemessage:'You do not have the permission to get a diamond'conditions:noperm1:## Negated check, it is met when player doesn't have the permissiontype:'!permission'permission:example.diamond