Advertisement
IcyBlue

Untitled

Sep 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.21 KB | None | 0 0
  1. # DeluxeMenus 1.10.0 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. # hide_attributes: <true/false if this item should display item attributes>
  64. # hide_enchantments: <true/false if this item should display item enchantment / level> (useful for 'enchantment glow' items)
  65. # hide_effects: <true/false if this item should display item effect attributes>
  66. # hide_unbreakable: <true/false if this item should display item unbreakable attributes>
  67. # banner_meta: (this is used if you want to display a custom banner with specific patterns)
  68. # - <dyecolor>;<PatternType> (more information on where to find DyeColor and PatternType names below)
  69. # - 'RED;BASE'
  70. # - 'WHITE;CREEPER'
  71. # display_name: <display name to show for this item>
  72. # lore:
  73. # - 'placeholders can be used in the name and lore'
  74. # - '%<any placeholder from Papi>% shows the viewer values'
  75. # enchantments: valid enchantment names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
  76. # - '<ENCHANTMENT>;<LEVEL>'
  77. # - 'SILK_TOUCH;1'
  78. # left_click_commands:
  79. # - '[close]'
  80. # left_click_requirement: <see how to use this option below>
  81. # right_click_commands:
  82. # - '[player] spawn'
  83. # right_click_requirement: <see how to use this option below>
  84. #
  85. #
  86. # You can specify if a GUI menu should be loaded from another file:
  87. #
  88. # gui_menus:
  89. # <menuName>:
  90. # file: 'menuName.yml'
  91. #
  92. # This allows you to keep your config clean and not have tons of GUI menus cluttering it.
  93. # The file format the GUI menu is loaded from must end in .yml
  94. # GUI menus loaded from other configuration files must follow a specific format as well...
  95. # 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.
  96. # After that is done, use /dm reload and DeluxeMenus will create a folder and file specific to the GUI menu you specified.
  97. # If the file specified is created by DeluxeMenus (because it did not exist), a default GUI menu layout will be saved to that file.
  98. # From here you can edit it to your liking and use /dm reload to update your GUI menu!
  99. #
  100. # This loading from external config files is only available for gui menus and will not work for click menus yet....
  101. #
  102. # banner_meta must be listed with a specific format:
  103. # banner_meta:
  104. # - <DyeColor>;<PatternType>
  105. #
  106. # Valid DyeColor names can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html
  107. # Valid PatternTypes can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html
  108. # ==============================================================
  109. #
  110. # Requirement information
  111. #
  112. # Requirements can be set as the following:
  113. #
  114. # open_requirement: This requirement is checked when a menu is opened
  115. # view_requirement: This requirement determines if an item should be set in a menu slot
  116. # left_click_requirement: This requirement is checked when an item is left clicked
  117. # right_click_requirement: This requirement is checked when an item is right clicked
  118. #
  119. # Requirement types:
  120. # javascript - Evaluates a javascript expression that must return true or false
  121. # configuration options:
  122. # expression:
  123. #
  124. # has item - Checks if a player has a specific item
  125. # configuration options:
  126. # material:
  127. # amount:
  128. # data:
  129. # name:
  130. # lore:
  131. #
  132. # has permission - Checks if a player has a specific permission
  133. # configuration options:
  134. # permission:
  135. #
  136. # string contains - Checks if a string contains another string
  137. # configuration options:
  138. # input:
  139. # output:
  140. #
  141. # string equals - Checks if a string equals another string
  142. # configuration options:
  143. # input:
  144. # output:
  145. #
  146. # string equals ignorecase - Checks if a string equals another string ignoring case
  147. # configuration options:
  148. # input:
  149. # output:
  150. #
  151. # > - Checks if a number is greater than another number
  152. # configuration options:
  153. # input:
  154. # output:
  155. #
  156. # >= - Checks if a number is greater than or equal to another number
  157. # configuration options:
  158. # input:
  159. # output:
  160. #
  161. # == - Checks if a number is equal to another number
  162. # configuration options:
  163. # input:
  164. # output:
  165. #
  166. # <= - Checks if a number is less than or equal to another number
  167. # configuration options:
  168. # input:
  169. # output:
  170. #
  171. # < - Checks if a number is less than another number
  172. # configuration options:
  173. # input:
  174. # output:
  175. #
  176. #
  177. #
  178. # So why would we want to use requirements?
  179. # By default, DeluxeMenus does not require a player meet any conditions to open your menu.
  180. # If you want to require a menu need a certain permission node for it to be accessed, or a certain amount of money
  181. # for a menu to be opened, You do that with an 'open_requirement'.
  182. # Below is an example of how you would deny opening a menu if the viewer does not have permission:
  183. #
  184. # menu_title: 'Menu that requires permission to open'
  185. # open_command: testmenu
  186. # size: 9
  187. # open_requirement:
  188. # requirements:
  189. # this_requirement_name:
  190. # type: has permission
  191. # permission: 'testmenu.open'
  192. # deny_commands:
  193. # - '[message] you do not have permission to open testmenu'
  194. #
  195. #
  196. # Below is a full example of use cases for requirements:
  197. #
  198. # menu_title: 'Menu that requires permission to open'
  199. # open_command: testmenu
  200. # size: 9
  201. # open_requirement:
  202. # requirements:
  203. # this_requirement_name:
  204. # type: has permission
  205. # permission: 'testmenu.open'
  206. # deny_commands:
  207. # - '[message] you do not have permission to open testmenu'
  208. # items:
  209. # mymenuitem:
  210. # priority: 2
  211. # material: DIRT
  212. # slot: 0
  213. # name 'You dont have 100 diamonds to view this item'
  214. # mymenuitem:
  215. # priority: 1
  216. # material: DIAMOND
  217. # slot: 0
  218. # name 'You have lots of diamonds so you can see this item'
  219. # view_requirement:
  220. # requirements:
  221. # diamond_requirement:
  222. # type: has item
  223. # material: diamond
  224. # amount: 100
  225. # left_click_requirement:
  226. # requirements:
  227. # money_requirement:
  228. # type: '>='
  229. # input: '%vault_eco_balance_fixed%'
  230. # output: 1000
  231. # deny_commands:
  232. # - '[message] you only have %vault_eco_balance_fixed%'
  233. # left_click_commands:
  234. # - '[message] you have over 1000 dollars!'
  235. # right_click_requirement:
  236. # requirements:
  237. # staff_requirement:
  238. # type: string equals
  239. # input: '%vault_rank%'
  240. # output: staff
  241. # deny_commands:
  242. # - '[message] you are not staff'
  243. # right_click_commands:
  244. # - '[message] you are staff'
  245. #
  246. # deny_commands: are optional and will be executed if the requirement is not met.
  247. # ==============================================================
  248. #
  249. #
  250. # You do not need to specify item options that you don't use!
  251. # The only required entries for a gui menu item to be valid are:
  252. #
  253. # A valid material
  254. # A valid slot
  255. #
  256. # Every item in the items list must have a unique <item identifier>
  257. #
  258. # If you choose to update placeholders for a specific item, you must specify update_interval: <time>
  259. # in the GUI menu options for the specific GUI menu.
  260. # Only GUI menus with at least one item that has update: true will update those specific items placeholders.
  261. #
  262. # Every click_command must start with a specific identifier to know what to do for the execution.
  263. # Valid click_command identifiers:
  264. #
  265. # [console] - Execute a command from the console
  266. # Usage: - '[console] <command with no slash>'
  267. #
  268. # [player] - Execute a command for the menu viewer
  269. # Usage: - '[player] <command with no slash>'
  270. #
  271. # [commandevent] - Fire a PlayerCommandPreprocessEvent for commands that do not use the bukkit command system
  272. # Usage: - '[commandevent] <command with no slash>'
  273. #
  274. # [message] - Send a message to the menu viewer
  275. # Usage: - [message] <message to send to the player
  276. #
  277. # [openguimenu] - Open a GUI menu (can only be used in GUI menu click_commands)
  278. # Usage: - '[openguimenu] <guiMenuName>'
  279. #
  280. # [connect] - Connect to the specified bungee server
  281. # Usage: - '[connect] <serverName>'
  282. #
  283. # [close] - Close the viewers open menu
  284. # Usage: - '[close]
  285. #
  286. # [refresh] - Refresh items in the current menu view
  287. # Usage: - '[refresh]
  288. #
  289. # [broadcastsound] - Broadcast a sound to the server
  290. # Usage: - '[broadcastsound]
  291. #
  292. # [sound] - Play a sound for a the specific player
  293. # Usage: - '[sound]
  294. #
  295. # [json] - Send a json message to the menu viewer
  296. # Usage: - '[json] {"text":"message"}'
  297. #
  298. #
  299. #
  300. # You can delay any of the click command being performed by ending the command with
  301. # <delay=(time in TICKS)>
  302. # example:
  303. # - '[close]'
  304. # - '[message] it has been 5 seconds since the menu closed!<delay=100>'
  305. # - '[message] it has been 10 seconds since the menu closed!<delay=200>'
  306. #
  307. # A delay should NOT be added to the [close] or [openguimenu] actions
  308. # as it could potentially cause unknown issues or glitches with menus.
  309. #
  310. # A NOTE WHEN EDITING THIS OR ANY DeluxeMenus CONFIGURATION FILE:
  311. # This config is sensitive to yaml formatting errors
  312. # KEEP A BACKUP WHEN EDITING YOUR FILE BEFORE UPLOADING TO YOUR SERVER!!!
  313. # Make sure every String you modify or add is enclosed in 'apostrophes
  314. check_updates: true
  315. gui_menus:
  316. example:
  317. menu_title: '&aExample GUI menu'
  318. open_command: examplemenu
  319. size: 9
  320. open_requirement:
  321. requirements:
  322. permission:
  323. type: has permission
  324. permission: some.permission
  325. deny_commands:
  326. - '[message] You dont have permission to open the example menu'
  327. items:
  328. '1':
  329. material: head;%player_name%
  330. slot: 0
  331. display_name: '&aHey &f%player_name%'
  332. lore:
  333. - '&aYou opened a GUI menu'
  334. - '&aThis menu is just for you!'
  335. left_click_commands:
  336. - '[close]'
  337. right_click_commands:
  338. - '[player] help'
  339. - '[close]'
  340. '2':
  341. material: DIRT
  342. data: 0
  343. amount: 1
  344. slot: 1
  345. priority: 1
  346. view_requirement:
  347. requirements:
  348. permission:
  349. type: has permission
  350. permission: some.permission
  351. display_name: '&bTeleport home'
  352. lore:
  353. - '&bClick to teleport'
  354. - '&bto your home'
  355. left_click_commands:
  356. - '[close]'
  357. right_click_commands:
  358. - '[player] home'
  359. - '[close]'
  360. '3':
  361. material: DIRT
  362. data: 0
  363. amount: 1
  364. slot: 1
  365. priority: 2
  366. display_name: '&bTeleport to spawn'
  367. lore:
  368. - '&bClick to teleport'
  369. - '&bto the server spawn'
  370. click_commands:
  371. - '[player] spawn'
  372. - '[close]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement