bietdaumatim

Untitled

Apr 24th, 2020
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.57 KB | None | 0 0
  1. # DeluxeMenus 1.9.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. # expression: 'BukkitPlayer.hasPermission("some.permission");'
  45. # deny_commands:
  46. # - '[message] &cYou dont have permission to view that menu!'
  47. # size: <size of this menu, increments of 9, max size is 54>
  48. # update_interval: <time in seconds this gui should update for a player if an item is set to uodate placeholders>
  49. # items:
  50. # <item identifier>:
  51. # material: <name or id, for player heads use the format 'head;<players name/%player_name%>'>
  52. # data: <integer, used for data values for wool etc>
  53. # amount: <amount of this item to show>
  54. # slot: <slot number to put this item, slots start at 0 and end at 53 for a size 54 inventory>
  55. # priority: <this is used if you have multiple items set for the same slot>
  56. # view_requirement: <the lowest priority item a player meets this requirement for ex: 1, will be shown>
  57. # update: <true/false if this item should update placeholders on the interval set for the gui menu this item is in>
  58. # hide_attributes: <true/false if this item should display item attributes>
  59. # hide_enchantments: <true/false if this item should display item enchantment / level> (useful for 'enchantment glow' items)
  60. # hide_effects: <true/false if this item should display item effect attributes>
  61. # hide_unbreakable: <true/false if this item should display item unbreakable attributes>
  62. # banner_meta: (this is used if you want to display a custom banner with specific patterns)
  63. # - <dyecolor>;<PatternType> (more information on where to find DyeColor and PatternType names below)
  64. # - 'RED;BASE'
  65. # - 'WHITE;CREEPER'
  66. # display_name: <display name to show for this item>
  67. # lore:
  68. # - 'placeholders can be used in the name and lore'
  69. # - '%<any placeholder from Papi>% shows the viewer values'
  70. # enchantments: valid enchantment names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
  71. # - '<ENCHANTMENT>;<LEVEL>'
  72. # - 'SILK_TOUCH;1'
  73. # left_click_commands:
  74. # - '[close]'
  75. # right_click_commands:
  76. # - '[player] spawn'
  77. #
  78. #
  79. # You can specify if a GUI menu should be loaded from another file:
  80. #
  81. # gui_menus:
  82. # <menuName>:
  83. # file: 'menuName.yml'
  84. #
  85. # This allows you to keep your config clean and not have tons of GUI menus cluttering it.
  86. # The file format the GUI menu is loaded from must end in .yml
  87. # GUI menus loaded from other configuration files must follow a specific format as well...
  88. # 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.
  89. # After that is done, use /dm reload and DeluxeMenus will create a folder and file specific to the GUI menu you specified.
  90. # If the file specified is created by DeluxeMenus (because it did not exist), a default GUI menu layout will be saved to that file.
  91. # From here you can edit it to your liking and use /dm reload to update your GUI menu!
  92. #
  93. # This loading from external config files is only available for gui menus and will not work for click menus yet....
  94. #
  95. # banner_meta must be listed with a specific format:
  96. # banner_meta:
  97. # - <DyeColor>;<PatternType>
  98. #
  99. # Valid DyeColor names can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html
  100. # Valid PatternTypes can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html
  101. # ==============================================================
  102. #
  103. # Click requirement information
  104. #
  105. # You can add 'click requirements' to left and right click commands'
  106. # These are defined per item and must follow a specific format:
  107. #
  108. # 'item_one':
  109. # material: DIAMOND
  110. # slot: 3
  111. # left_click_commands:
  112. # - '[close]'
  113. # - '[message] You were charged 100 dollars for clicking that item!'
  114. # - '[console] eco take %player% 100'
  115. # left_click_requirement:
  116. # expression: '%vaulteco_balance% > 100'
  117. # deny_commands:
  118. # - '[close]'
  119. # - '[message] &cYou dont have 100 dollars to click that item'
  120. # right_click_commands:
  121. # - '[close]'
  122. # - '[message] You had permission to click that item!'
  123. # right_click_requirement:
  124. # expression: 'BukkitPlayer.hasPermission("some.permission.toclick")'
  125. # deny_commands:
  126. # - '[close]'
  127. # - '[message] &cYou dont have permission to click that item'
  128. #
  129. # Every left/right_click_requirement MUST have an expression specified that would return a boolean (true/false)
  130. # These expressions must also follow JavaScript format as they are all javascript based!
  131. #
  132. # deny_commands: are optional and will be executed if the expression returns false.
  133. # You may use placeholders in your Javascript expressions to evaluate if the player meets the requirement or not.
  134. # You may also use a few keywords which give you access to the Player class and Bukkit.Server class if you understand the Bukkit API
  135. #
  136. # BukkitPlayer - references the Player object your expression is evaluating.
  137. # BukkitServer - references Bukkit.getServer() in the Bukkit API.
  138. #
  139. # The choice to use this system to evaluate if a player meets requirements to click an item was an easy choice.
  140. # This way I do not have to hook into every plugin to check if a player meets the requirement to click an item successfully.
  141. # You can simply use placeholders, or the keywords provided to give you access to the Player and Server objects.
  142. # If you want to check if a player has enough money, simply use an expression like so:
  143. #
  144. # expression: '%vaulteco_balance% >= 100' (checks if players balance is greater than or equal to 100)
  145. # If you want to charge the player, simply run the economy command to take the amount from the players balance in your click_commands
  146. # which will be executed if the player meets the requirement!
  147. # ==============================================================
  148. #
  149. # View requirement information
  150. #
  151. # You can add a 'view requirement' to an item if it has a priority value set for it
  152. # The view requirement has replaced the 'permission' entry for items
  153. # This allows you to specify a specific requirement in javascript for the item to be shown
  154. # In order to use view requirements, the item must have a priority value and a valid javascript expression
  155. # that returns true or false.
  156. #
  157. # 'item_one':
  158. # material: DIAMOND
  159. # slot: 3
  160. # priority: 1
  161. # view_requirement: '%vaulteco_balance% > 100'
  162. # 'item_two':
  163. # material: IRON_INGOT
  164. # slot: 3
  165. # priority: 2
  166. # view_requirement: 'BukkitPlayer.hasPermission("some.permission")'
  167. # 'item_three':
  168. # material: STONE
  169. # slot: 3
  170. # priority: 3
  171. #
  172. # In the example above, the priority 1 item view requirement will be checked first, if a player has over 100 dollars, that item will be shown.
  173. # If the player does not meet the requirement for the first item, the item with priority 2 will be checked. If the player does not have the permission
  174. # node some.permission, the final item 'item_three' will be set to slot 3 as the player did not meet the requirement for the first 2 items with
  175. # a higher priority.
  176. #
  177. # You may use placeholders in your Javascript expressions to evaluate if the player meets the requirement or not.
  178. # You may also use a few keywords which give you access to the Player class and Bukkit.Server class if you understand the Bukkit API
  179. #
  180. # BukkitPlayer - references the Player object your expression is evaluating.
  181. # BukkitServer - references Bukkit.getServer() in the Bukkit API.
  182. #
  183. # The choice to use this system to evaluate if a player meets requirements to click an item was an easy choice.
  184. # This way I do not have to hook into every plugin to check if a player meets the requirement to click an item successfully.
  185. # You can simply use placeholders, or the keywords provided to give you access to the Player and Server objects.
  186. # If you want to check if a player has enough money, simply use an expression like so:
  187. #
  188. # view_requirement: '%vaulteco_balance% >= 100' (checks if players balance is greater than or equal to 100)
  189. # ==============================================================
  190. #
  191. #
  192. # You do not need to specify item options that you don't use!
  193. # The only required entries for a gui menu item to be valid are:
  194. #
  195. # A valid material
  196. # A valid slot
  197. #
  198. # Every item in the items list must have a unique <item identifier>
  199. #
  200. # If you choose to update placeholders for a specific item, you must specify update_interval: <time>
  201. # in the GUI menu options for the specific GUI menu.
  202. # Only GUI menus with at least one item that has update: true will update those specific items placeholders.
  203. #
  204. # Every click_command must start with a specific identifier to know what to do for the execution.
  205. # Valid click_command identifiers:
  206. #
  207. # [console] - Execute a command from the console
  208. # Usage: - '[console] <command with no slash>'
  209. #
  210. # [player] - Execute a command for the menu viewer
  211. # Usage: - '[player] <command with no slash>'
  212. #
  213. # [commandevent] - Fire a PlayerCommandPreprocessEvent for commands that do not use the bukkit command system
  214. # Usage: - '[commandevent] <command with no slash>'
  215. #
  216. # [message] - Send a message to the menu viewer
  217. # Usage: - [message] <message to send to the player
  218. #
  219. # [openguimenu] - Open a GUI menu (can only be used in GUI menu click_commands)
  220. # Usage: - '[openguimenu] <guiMenuName>'
  221. #
  222. # [connect] - Connect to the specified bungee server
  223. # Usage: - '[connect] <serverName>'
  224. #
  225. # [close] - Close the viewers open menu
  226. # Usage: - '[close]
  227. #
  228. # [json] - Send a json message to the menu viewer
  229. # Usage: - '[json] {"text":"message"}'
  230. #
  231. #
  232. #
  233. # You can delay any of the click command being performed by ending the command with
  234. # <delay=(time in TICKS)>
  235. # example:
  236. # - '[close]'
  237. # - '[message] it has been 5 seconds since the menu closed!<delay=100>'
  238. # - '[message] it has been 10 seconds since the menu closed!<delay=200>'
  239. #
  240. # A delay should NOT be added to the [close] or [openguimenu] actions
  241. # as it could potentially cause unknown issues or glitches with menus.
  242. #
  243. # A NOTE WHEN EDITING THIS OR ANY DeluxeMenus CONFIGURATION FILE:
  244. # This config is sensitive to yaml formatting errors
  245. # KEEP A BACKUP WHEN EDITING YOUR FILE BEFORE UPLOADING TO YOUR SERVER!!!
  246. # Make sure every String you modify or add is enclosed in 'apostrophes
  247. check_updates: true
  248. gui_menus:
  249. oreup:
  250. menu_title: &c&lKHU VỰC NÂNG CẤP MÁY FARM
  251. size: 27
  252. open_command:
  253. - ode
  254. items:
  255. '2':
  256. material: coal
  257. data: 0
  258. priority: 1
  259. slot: 10
  260. display_name: '&6&lMÁY FARM BẬC II'
  261. lore:
  262. - '&c 10 da'
  263. - '&c 20 sat'
  264. - '&c 30 vag'
  265. left_click_commands:
  266. - '[console] tm msg %player_name% &a&l NÂNG CẤP THÀNH CÔNG HÃY THỬ TẠI IS CỦA BẠN'
  267. - '[console] eco take %player_name% 50000'
  268. - '[console] pex user %player_name% add upgrades.gen.2'
  269. - '[console] pex user %player_name% add mayfarm.cap2'
  270. - '[console]'
  271. left_click_requirement:
  272. requirement:
  273. Economy:
  274. type: has money
  275. amount: 50000
  276. Permission:
  277. type: has permission
  278. permission: 'mayfarm.cap1'
  279. deny_commands:
  280. - '[console] tm msg %player_name%&c&l KHÔNG ĐỦ TIỀN BẠN ƠI'
  281. - '[sound] LEVEL_UP'
  282. - '[close]'
  283. '3':
  284. material: iron
  285. data: 0
  286. priority: 1
  287. slot: 10
  288. display_name: '&6&lMÁY FARM BẬC III'
  289. view_requirement:
  290. requirement:
  291. permission:
  292. type: has permission
  293. permission: 'upgrades.gen.2'
  294. lore:
  295. - '&c 20 da'
  296. - '&c 30 sat'
  297. - '&c 40 vag'
  298. left_click_commands:
  299. - '[console] tm msg %player_name% &a&l NÂNG CẤP THÀNH CÔNG HÃY THỬ TẠI IS CỦA BẠN'
  300. - '[console] eco take %player_name% 50000'
  301. - '[console] pex user %player_name% add upgrades.gen.3'
  302. - '[console]'
  303. left_click_requirement:
  304. requirement:
  305. Economy:
  306. type: has money
  307. amount: 50000
  308. Permission:
  309. type: has permission
  310. permission: 'mayfarm.cap2'
  311. deny_commands:
  312. - '[console] tm msg %player_name%&c&l KHÔNG ĐỦ TIỀN BẠN ƠI'
  313. - '[sound] LEVEL_UP'
  314. - '[close]'
Advertisement
Add Comment
Please, Sign In to add comment