open_requirements:
These requirements are used to determine whether a player can or cannot open a menu."
open_requirements:type:"has_permission"permission:"mapmenu.custom_menu"deny_actions: - "[message] &cYou do not have permission to do this action"
requirements:
layer requirements. These requirements are used to determine whether a player can select a button or not."
day:type:"button"texture_outline:"examples/button_outline.png"position:"[5, 64]"actions:requirements:type:"has_permission"permission:"essentials.time.set"deny_actions: - "[message] &cYou do not have permission to do this action"actions: - "[console] day"
view_requirements:
view_requirements is used so that a player, if they do not meet these requirements, cannot see the layer
#has_permissiontype:"has_permission"permission:"essentials.time.set"#does_not_have_permissiontype:"does_not_have_permission"permission:"testpermission.user"#compare#comparators: "==, >, >=, <, <=, !=" #You can also use "==" or "&&"type:"compare"value:"%player_name% == FavioMC19"#javascript#You can refer to# the player as 'BukkitPlayer'# the server as 'BukkitServer'# and the plugin as 'MapMenuPlugin'#In this example, the actions would only be called if the player is not hungrytype:"javascript"expression:"BukkitPlayer.getFoodLevel() == 20"