Advertisement
IcyBlue

Untitled

Sep 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.03 KB | None | 0 0
  1. # enchanter GUI menu configuration
  2. #
  3. # configuration layout:
  4. #
  5. # menu_title: '<title of menu goes here>'
  6. # inventory_type: '<add this option if you want to create a menu of a different InventoryType aside from chest>'
  7. # command: <command to open this menu goes here>
  8. # open_requirement:
  9. # requirements:
  10. # <unique name for this requirement>:
  11. # type: <type for this requirement>
  12. # <unique options per requirement type would go here>
  13. # deny_commands:
  14. # - '[message] you do not meet requirements to open this menu'
  15. # size: <size of this menu, increments of 9, max size is 54>
  16. # update_interval: <time in seconds this gui should update for a player if an item is set to uodate placeholders>
  17. # items:
  18. # <item identifier>:
  19. # material: <name or id>
  20. # material: head-<name of player>
  21. # material: hdb-<HeadDatabase id> (requires plugin HeadDatabase)
  22. # entitytype: <name of entity type for mob eggs> https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html'>
  23. # data: <integer, used for data values for wool etc>
  24. # amount: <amount of this item to show>
  25. # slot: <slot number to put this item, slots start at 0 and end at 53 for a size 54 inventory>
  26. # priority: <this is used if you have multiple items set for the same slot>
  27. # view_requirement: <see item view requirement info below. The lowest priority item a player meets all view requirements for will be shown>
  28. # update: <true/false if this item should update placeholders on the interval set for the gui menu this item is in>
  29. # hide_attributes: <true/false if this item should display item attributes>
  30. # hide_enchantments: <true/false if this item should display item enchantment / level> (useful for 'enchantment glow' items)
  31. # hide_effects: <true/false if this item should display item effect attributes>
  32. # hide_unbreakable: <true/false if this item should display item unbreakable attributes>
  33. # display_name: <display name to show for this item>
  34. # banner_meta: (this is used if you want to display a custom banner with specific patterns)
  35. # - <dyecolor>;<PatternType> (more information on where to find DyeColor and PatternType names below)
  36. # - 'RED;BASE'
  37. # - 'WHITE;CREEPER'
  38. # lore:
  39. # - 'placeholders can be used in the name and lore'
  40. # - '%<any placeholder from Papi>% shows the viewer values'
  41. # enchantments: valid enchantment names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
  42. # - '<ENCHANTMENT>;<LEVEL>'
  43. # - 'SILK_TOUCH;1'
  44. # left_click_commands:
  45. # - '[close]'
  46. # left_click_requirement: <see how to use this option below>
  47. # right_click_commands:
  48. # - '[player] spawn'
  49. # right_click_requirement: <see how to use this option below>
  50. #
  51. # All keys aside from update_interval are required for this menu to be valid and loaded!
  52. # The only options for an item to be considered valid are material and slot!
  53. #
  54. # banner_meta must be listed with a specific format:
  55. # banner_meta:
  56. # - <DyeColor>;<PatternType>
  57. #
  58. # Valid DyeColor names can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html
  59. # Valid PatternTypes can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html
  60. # ==============================================================
  61. #
  62. # Requirement information
  63. #
  64. # Requirements can be set as the following:
  65. #
  66. # open_requirement: This requirement is checked when a menu is opened
  67. # view_requirement: This requirement determines if an item should be set in a menu slot
  68. # left_click_requirement: This requirement is checked when an item is left clicked
  69. # right_click_requirement: This requirement is checked when an item is right clicked
  70. #
  71. # Requirement types:
  72. # javascript - Evaluates a javascript expression that must return true or false
  73. # configuration options:
  74. # expression:
  75. #
  76. # has item - Checks if a player has a specific item
  77. # configuration options:
  78. # material:
  79. # amount:
  80. # data:
  81. # name:
  82. # lore:
  83. #
  84. # has permission - Checks if a player has a specific permission
  85. # configuration options:
  86. # permission:
  87. #
  88. # string contains - Checks if a string contains another string
  89. # configuration options:
  90. # input:
  91. # output:
  92. #
  93. # string equals - Checks if a string equals another string
  94. # configuration options:
  95. # input:
  96. # output:
  97. #
  98. # string equals ignorecase - Checks if a string equals another string ignoring case
  99. # configuration options:
  100. # input:
  101. # output:
  102. #
  103. # > - Checks if a number is greater than another number
  104. # configuration options:
  105. # input:
  106. # output:
  107. #
  108. # >= - Checks if a number is greater than or equal to another number
  109. # configuration options:
  110. # input:
  111. # output:
  112. #
  113. # == - Checks if a number is equal to another number
  114. # configuration options:
  115. # input:
  116. # output:
  117. #
  118. # <= - Checks if a number is less than or equal to another number
  119. # configuration options:
  120. # input:
  121. # output:
  122. #
  123. # < - Checks if a number is less than another number
  124. # configuration options:
  125. # input:
  126. # output:
  127. #
  128. #
  129. #
  130. # So why would we want to use requirements?
  131. # By default, DeluxeMenus does not require a player meet any conditions to open your menu.
  132. # If you want to require a menu need a certain permission node for it to be accessed, or a certain amount of money
  133. # for a menu to be opened, You do that with an 'open_requirement'.
  134. # Below is an example of how you would deny opening a menu if the viewer does not have permission:
  135. #
  136. # menu_title: 'Menu that requires permission to open'
  137. # open_command: testmenu
  138. # size: 9
  139. # open_requirement:
  140. # requirements:
  141. # this_requirement_name:
  142. # type: has permission
  143. # permission: 'testmenu.open'
  144. # deny_commands:
  145. # - '[message] you do not have permission to open testmenu'
  146. #
  147. #
  148. # Below is a full example of use cases for requirements:
  149. #
  150. # menu_title: 'Menu that requires permission to open'
  151. # open_command: testmenu
  152. # size: 9
  153. # open_requirement:
  154. # requirements:
  155. # this_requirement_name:
  156. # type: has permission
  157. # permission: 'testmenu.open'
  158. # deny_commands:
  159. # - '[message] you do not have permission to open testmenu'
  160. # items:
  161. # mymenuitem:
  162. # priority: 2
  163. # material: DIRT
  164. # slot: 0
  165. # name 'You dont have 100 diamonds to view this item'
  166. # mymenuitem:
  167. # priority: 1
  168. # material: DIAMOND
  169. # slot: 0
  170. # name 'You have lots of diamonds so you can see this item'
  171. # view_requirement:
  172. # requirements:
  173. # diamond_requirement:
  174. # type: has item
  175. # material: diamond
  176. # amount: 100
  177. # left_click_requirement:
  178. # requirements:
  179. # money_requirement:
  180. # type: '>='
  181. # input: '%vault_eco_balance_fixed%'
  182. # output: 1000
  183. # deny_commands:
  184. # - '[message] you only have %vault_eco_balance_fixed%'
  185. # left_click_commands:
  186. # - '[message] you have over 1000 dollars!'
  187. # right_click_requirement:
  188. # requirements:
  189. # staff_requirement:
  190. # type: string equals
  191. # input: '%vault_rank%'
  192. # output: staff
  193. # deny_commands:
  194. # - '[message] you are not staff'
  195. # right_click_commands:
  196. # - '[message] you are staff'
  197. #
  198. # deny_commands: are optional and will be executed if the requirement is not met.
  199. # ==============================================================
  200. menu_title: '&fenchanter &aGUI menu'
  201. open_command: enchantergui
  202. size: 9
  203. open_requirement:
  204. requirements:
  205. permission:
  206. type: has permission
  207. permission: menu.open.enchanter
  208. deny_commands:
  209. - '[message] You dont have permission to open menu: enchanter'
  210. items:
  211. '1':
  212. material: head;%player_name%
  213. slot: 0
  214. display_name: '&aHey &f%player_name%'
  215. lore:
  216. - '&aYou opened a GUI menu'
  217. - '&aThis menu is just for you!'
  218. left_click_commands:
  219. - '[close]'
  220. right_click_commands:
  221. - '[player] help'
  222. - '[close]'
  223. '2':
  224. material: DIRT
  225. data: 0
  226. amount: 1
  227. slot: 1
  228. priority: 1
  229. view_requirement:
  230. requirements:
  231. permission:
  232. type: has permission
  233. permission: some.permission
  234. display_name: '&bTeleport home'
  235. lore:
  236. - '&bClick to teleport'
  237. - '&bto your home'
  238. click_commands:
  239. - '[player] home'
  240. - '[close]'
  241. '3':
  242. material: DIRT
  243. data: 0
  244. amount: 1
  245. slot: 1
  246. priority: 2
  247. display_name: '&bTeleport to spawn'
  248. lore:
  249. - '&bClick to teleport'
  250. - '&bto the server spawn'
  251. click_commands:
  252. - '[player] spawn'
  253. - '[close]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement