Advertisement
Guest User

DeluxeMenus

a guest
Jul 13th, 2019
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.54 KB | None | 0 0
  1. # DeluxeMenus 1.11.6 main configuration file
  2. #
  3. # check_updates: <true/false>
  4. # Should DeluxeMenus check if there are any updates available on Spigot and inform ops there is an update available.
  5. #
  6. # ==============================================================
  7. #
  8. # PER ITEM PERMISSION AND PRIORITY INFO:
  9. #
  10. # Per item permissions and priorities are optional.
  11. # High priority = 1, Lowest priority = 2147483647.
  12. # This allows you to show different items for a specific menu slot depending on the highest priority
  13. # item permission a player has. This makes your menus very dynamic :)
  14. #
  15. # You CAN NOT specify a permission without a priority!
  16. # You CAN specify a priority without a permission.
  17. # You should always create a low priority item without a permission which will act as the no permission
  18. # item if a player does not have permission for any of the items that require permission, otherwise
  19. # no item will be set in the slot if a player does not have permission for any of the permission items.
  20. #
  21. # ==============================================================
  22. #
  23. # GUI menu configuration:
  24. #
  25. # You can create as many GUI menus you like.
  26. # Every menu name must be unique. There can not be duplicate menu names!
  27. # Players must have permission for a GUI menu to open one!
  28. # Ops should automatically have permission for any GUI menu.
  29. #
  30. # Permission to open a GUI menu is: deluxemenus.guimenu.<menuName>
  31. #
  32. # You specify the command which opens the GUI menu. Make sure this command
  33. # does not conflict with any existing commands on your server!
  34. # A GUI menu without an open command specified will not be loaded!
  35. #
  36. # GUI menus configuration layout:
  37. #
  38. # gui_menus:
  39. # <menuName>:
  40. # menu_title: '<title of menu goes here>'
  41. # command: <command to open this menu goes here>
  42. # inventory_type: '<add this option if you want to create a menu of a different InventoryType aside from chest>'
  43. # open_requirement:
  44. # requirements:
  45. # <unique name for this requirement>:
  46. # type: <type for this requirement>
  47. # <unique options per requirement type would go here>
  48. # deny_commands:
  49. # - '[message] you do not meet requirements to open this menu'
  50. # size: <size of this menu, increments of 9, max size is 54>
  51. # update_interval: <time in seconds this gui should update for a player if an item is set to uodate placeholders>
  52. # items:
  53. # <item identifier>:
  54. # material: <name or id>
  55. # material: head-<name of player>
  56. # material: hdb-<HeadDatabase id> (requires plugin HeadDatabase)
  57. # data: <integer, used for data values for wool etc>
  58. # amount: <amount of this item to show>
  59. # slot: <slot number to put this item, slots start at 0 and end at 53 for a size 54 inventory>
  60. # priority: <this is used if you have multiple items set for the same slot>
  61. # view_requirement: <see view requirement info below. The lowest priority item a player meets all view requirements for will be shown>
  62. # update: <true/false if this item should update placeholders on the interval set for the gui menu this item is in>
  63. # unbreakable: <true/false if this item should be unbreakable>
  64. # hide_attributes: <true/false if this item should display item attributes>
  65. # hide_enchantments: <true/false if this item should display item enchantment / level> (useful for 'enchantment glow' items)
  66. # hide_effects: <true/false if this item should display item effect attributes>
  67. # hide_unbreakable: <true/false if this item should display item unbreakable attributes>
  68. # banner_meta: (this is used if you want to display a custom banner with specific patterns)
  69. # - <dyecolor>;<PatternType> (more information on where to find DyeColor and PatternType names below)
  70. # - 'RED;BASE'
  71. # - 'WHITE;CREEPER'
  72. # display_name: <display name to show for this item>
  73. # lore:
  74. # - 'placeholders can be used in the name and lore'
  75. # - '%<any placeholder from Papi>% shows the viewer values'
  76. # enchantments: valid enchantment names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
  77. # - '<ENCHANTMENT>;<LEVEL>'
  78. # - 'SILK_TOUCH;1'
  79. # left_click_commands:
  80. # - '[close]'
  81. # left_click_requirement: <see how to use this option below>
  82. # right_click_commands:
  83. # - '[player] spawn'
  84. # right_click_requirement: <see how to use this option below>
  85. #
  86. #
  87. # You can specify if a GUI menu should be loaded from another file:
  88. #
  89. # gui_menus:
  90. # <menuName>:
  91. # file: 'menuName.yml'
  92. #
  93. # This allows you to keep your config clean and not have tons of GUI menus cluttering it.
  94. # The file format the GUI menu is loaded from must end in .yml
  95. # GUI menus loaded from other configuration files must follow a specific format as well...
  96. # To get started loading GUI menus from different files, simply create a GUI menu in this config and specify the file it will load from.
  97. # After that is done, use /dm reload and DeluxeMenus will create a folder and file specific to the GUI menu you specified.
  98. # If the file specified is created by DeluxeMenus (because it did not exist), a default GUI menu layout will be saved to that file.
  99. # From here you can edit it to your liking and use /dm reload to update your GUI menu!
  100. #
  101. # This loading from external config files is only available for gui menus and will not work for click menus yet....
  102. #
  103. # banner_meta must be listed with a specific format:
  104. # banner_meta:
  105. # - <DyeColor>;<PatternType>
  106. #
  107. # Valid DyeColor names can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html
  108. # Valid PatternTypes can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html
  109. # ==============================================================
  110. #
  111. # Requirement information
  112. #
  113. # Requirements can be set as the following:
  114. #
  115. # open_requirement: This requirement is checked when a menu is opened
  116. # view_requirement: This requirement determines if an item should be set in a menu slot
  117. # left_click_requirement: This requirement is checked when an item is left clicked
  118. # right_click_requirement: This requirement is checked when an item is right clicked
  119. #
  120. # Requirement types:
  121. # javascript - Evaluates a javascript expression that must return true or false
  122. # configuration options:
  123. # expression
  124. #
  125. # has item - Checks if a player has a specific item
  126. # configuration options:
  127. # material
  128. # amount
  129. # data
  130. # name
  131. # lore
  132. #
  133. # has money - Checks if a player has enough money (Vault required)
  134. # configuration options:
  135. # amount
  136. #
  137. # has permission - Checks if a player has a specific permission
  138. # configuration options:
  139. # permission
  140. #
  141. # string contains - Checks if a string contains another string
  142. # configuration options:
  143. # input
  144. # output
  145. #
  146. # string equals - Checks if a string equals another string
  147. # configuration options:
  148. # input
  149. # output
  150. #
  151. # stringequalsignorecase - Checks if a string equals another string ignoring case
  152. # configuration options:
  153. # input
  154. # output
  155. #
  156. # > - Checks if a number is greater than another number
  157. # configuration options:
  158. # input
  159. # output
  160. #
  161. # >= - Checks if a number is greater than or equal to another number
  162. # configuration options:
  163. # input
  164. # output
  165. #
  166. # == - Checks if a number is equal to another number
  167. # configuration options:
  168. # input
  169. # output
  170. #
  171. # <= - Checks if a number is less than or equal to another number
  172. # configuration options:
  173. # input
  174. # output
  175. #
  176. # < - Checks if a number is less than another number
  177. # configuration options:
  178. # input
  179. # output
  180. #
  181. # regex matches - Checks if a placeholder parsed string matches a regex pattern
  182. # configuration options:
  183. # input
  184. # regex
  185. #
  186. #
  187. #
  188. # So why would we want to use requirements?
  189. # By default, DeluxeMenus does not require a player meet any conditions to open your menu.
  190. # If you want to require a menu need a certain permission node for it to be accessed, or a certain amount of money
  191. # for a menu to be opened, You do that with an 'open_requirement'.
  192. # Below is an example of how you would deny opening a menu if the viewer does not have permission:
  193. #
  194. # menu_title: 'Menu that requires permission to open'
  195. # open_command: testmenu
  196. # size: 9
  197. # open_requirement:
  198. # requirements:
  199. # this_requirement_name:
  200. # type: has permission
  201. # permission: 'testmenu.open'
  202. # deny_commands:
  203. # - '[message] you do not have permission to open testmenu'
  204. #
  205. #
  206. # Below is a full example of use cases for requirements:
  207. #
  208. # menu_title: 'Menu that requires permission to open'
  209. # open_command: testmenu
  210. # size: 9
  211. # open_requirement:
  212. # requirements:
  213. # this_requirement_name:
  214. # type: has permission
  215. # permission: 'testmenu.open'
  216. # deny_commands:
  217. # - '[message] you do not have permission to open testmenu'
  218. # items:
  219. # mymenuitem:
  220. # priority: 2
  221. # material: DIRT
  222. # slot: 0
  223. # name 'You dont have 100 diamonds to view this item'
  224. # mymenuitem:
  225. # priority: 1
  226. # material: DIAMOND
  227. # slot: 0
  228. # name 'You have lots of diamonds so you can see this item'
  229. # view_requirement:
  230. # requirements:
  231. # diamond_requirement:
  232. # type: has item
  233. # material: diamond
  234. # amount: 100
  235. # left_click_requirement:
  236. # requirements:
  237. # money_requirement:
  238. # type: '>='
  239. # input: '%vault_eco_balance_fixed%'
  240. # output: 1000
  241. # deny_commands:
  242. # - '[message] you only have %vault_eco_balance_fixed%'
  243. # left_click_commands:
  244. # - '[message] you have over 1000 dollars!'
  245. # right_click_requirement:
  246. # requirements:
  247. # staff_requirement:
  248. # type: string equals
  249. # input: '%vault_rank%'
  250. # output: staff
  251. # deny_commands:
  252. # - '[message] you are not staff'
  253. # right_click_commands:
  254. # - '[message] you are staff'
  255. #
  256. # deny_commands: are optional and will be executed if the requirement is not met.
  257. # ==============================================================
  258. #
  259. #
  260. # You do not need to specify item options that you don't use!
  261. # The only required entries for a gui menu item to be valid are:
  262. #
  263. # A valid material
  264. # A valid slot
  265. #
  266. # Every item in the items list must have a unique <item identifier>
  267. #
  268. # If you choose to update placeholders for a specific item, you must specify update_interval: <time>
  269. # in the GUI menu options for the specific GUI menu.
  270. # Only GUI menus with at least one item that has update: true will update those specific items placeholders.
  271. #
  272. # Every click_command must start with a specific identifier to know what to do for the execution.
  273. # Valid click_command identifiers:
  274. #
  275. # [console] - Execute a command from the console
  276. # Usage: - '[console] <command with no slash>'
  277. #
  278. # [player] - Execute a command for the menu viewer
  279. # Usage: - '[player] <command with no slash>'
  280. #
  281. # [commandevent] - Fire a PlayerCommandPreprocessEvent for commands that do not use the bukkit command system
  282. # Usage: - '[commandevent] <command with no slash>'
  283. #
  284. # [message] - Send a message to the menu viewer
  285. # Usage: - [message] <message to send to the player
  286. #
  287. # [broadcast] - Broadcast a message to the server
  288. # Usage: - '[broadcast] <message>
  289. #
  290. # [chat] - Send a chat message as the player performing the action
  291. # Usage: - '[chat] <message>
  292. #
  293. # [openguimenu] - Open a GUI menu (can only be used in GUI menu click_commands)
  294. # Usage: - '[openguimenu] <guiMenuName>'
  295. #
  296. # [connect] - Connect to the specified bungee server
  297. # Usage: - '[connect] <serverName>'
  298. #
  299. # [close] - Close the viewers open menu
  300. # Usage: - '[close]
  301. #
  302. # [refresh] - Refresh items in the current menu view
  303. # Usage: - '[refresh]
  304. #
  305. # [broadcastsound] - Broadcast a sound to the server
  306. # Usage: - '[broadcastsound]
  307. #
  308. # [sound] - Play a sound for a the specific player
  309. # Usage: - '[sound]
  310. #
  311. # [takemoney] - Take money from a player (requires Vault)
  312. # Usage: - '[takemoney] <amount>
  313. #
  314. # [json] - Send a json message to the menu viewer
  315. # Usage: - '[json] {"text":"message"}'
  316. #
  317. #
  318. #
  319. # You can delay any of the click command being performed by ending the command with
  320. # <delay=(time in TICKS)>
  321. # example:
  322. # - '[close]'
  323. # - '[message] it has been 5 seconds since the menu closed!<delay=100>'
  324. # - '[message] it has been 10 seconds since the menu closed!<delay=200>'
  325. #
  326. # A delay should NOT be added to the [close] or [openguimenu] actions
  327. # as it could potentially cause unknown issues or glitches with menus.
  328. debug: false
  329. check_updates: true
  330. gui_menus:
  331. example:
  332. menu_title: '&aExample GUI menu'
  333. open_command: examplemenu
  334. size: 9
  335. open_requirement:
  336. requirements:
  337. permission:
  338. type: has permission
  339. permission: some.permission
  340. deny_commands:
  341. - '[message] You dont have permission to open the example menu'
  342. items:
  343. '1':
  344. material: head;%player_name%
  345. slot: 0
  346. display_name: '&aHey &f%player_name%'
  347. lore:
  348. - '&aYou opened a GUI menu'
  349. - '&aThis menu is just for you!'
  350. left_click_commands:
  351. - '[close]'
  352. right_click_commands:
  353. - '[player] help'
  354. - '[close]'
  355. '2':
  356. material: DIRT
  357. data: 0
  358. amount: 1
  359. slot: 1
  360. priority: 1
  361. view_requirement:
  362. requirements:
  363. permission:
  364. type: has permission
  365. permission: some.permission
  366. display_name: '&bTeleport home'
  367. lore:
  368. - '&bClick to teleport'
  369. - '&bto your home'
  370. left_click_commands:
  371. - '[close]'
  372. right_click_commands:
  373. - '[player] home'
  374. - '[close]'
  375. '3':
  376. material: DIRT
  377. data: 0
  378. amount: 1
  379. slot: 2
  380. priority: 2
  381. display_name: '&bTeleport to spawn'
  382. lore:
  383. - '&bClick to teleport'
  384. - '&bto the server spawn'
  385. click_commands:
  386. - '[player] spawn'
  387. - '[close]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement