Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # DeluxeMenus 1.8.0 main configuration file
- #
- # check_updates: <true/false>
- # Should DeluxeMenus check if there are any updates available on Spigot and inform ops there is an update available.
- #
- # ==============================================================
- #
- # PER ITEM PERMISSION AND PRIORITY INFO:
- #
- # Per item permissions and priorities are optional.
- # High priority = 1, Lowest priority = 2147483647.
- # This allows you to show different items for a specific menu slot depending on the highest priority
- # item permission a player has. This makes your menus very dynamic :)
- #
- # You CAN NOT specify a permission without a priority!
- # You CAN specify a priority without a permission.
- # You should always create a low priority item without a permission which will act as the false permission
- # item if a player does not have permission for any of the items that require permission, otherwise
- # false item will be set in the slot if a player does not have permission for any of the permission items.
- #
- # ==============================================================
- #
- # GUI menu configuration:
- #
- # You can create as many GUI menus you like.
- # Every menu name must be unique. There can not be duplicate menu names!
- # Players must have permission for a GUI menu to open one!
- # Ops should automatically have permission for any GUI menu.
- #
- # Permission to open a GUI menu is: deluxemenus.guimenu.<menuName>
- #
- # You specify the command which opens the GUI menu. Make sure this command
- # does not conflict with any existing commands on your server!
- # A GUI menu without an open command specified will not be loaded!
- #
- # GUI menus configuration layout:
- #
- # gui_menus:
- # <menuName>:
- # menu_title: '<title of menu goes here>'
- # command: <command to open this menu goes here>
- # inventory_type: '<add this option if you want to create a menu of a different InventoryType aside from chest>'
- # open_requirement:
- # expression: 'BukkitPlayer.hasPermission("some.permission");'
- # deny_commands:
- # - '[message] &cYou dont have permission to view that menu!'
- # size: <size of this menu, increments of 9, max size is 54>
- # update_interval: <time in seconds this gui should update for a player if an item is set to uodate placeholders>
- # items:
- # <item identifier>:
- # material: <name or id, for player heads use the format 'head;<players name/%player_name%>'>
- # data: <integer, used for data values for wool etc>
- # amount: <amount of this item to show>
- # slot: <slot number to put this item, slots start at 0 and end at 53 for a size 54 inventory>
- # priority: <this is used if you have multiple items set for the same slot>
- # view_requirement: <the lowest priority item a player meets this requirement for ex: 1, will be shown>
- # update: <true/false if this item should update placeholders on the interval set for the gui menu this item is in>
- # hide_attributes: <true/false if this item should display item attributes>
- # hide_enchantments: <true/false if this item should display item enchantment / level> (useful for 'enchantment glow' items)
- # hide_effects: <true/false if this item should display item effect attributes>
- # hide_unbreakable: <true/false if this item should display item unbreakable attributes>
- # banner_meta: (this is used if you want to display a custom banner with specific patterns)
- # - <dyecolor>;<PatternType> (more information on where to find DyeColor and PatternType names below)
- # - 'RED;BASE'
- # - 'WHITE;CREEPER'
- # display_name: <display name to show for this item>
- # lore:
- # - 'placeholders can be used in the name and lore'
- # - '%<any placeholder from Papi>% shows the viewer values'
- # enchantments: valid enchantment names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
- # - '<ENCHANTMENT>;<LEVEL>'
- # - 'SILK_TOUCH;1'
- # left_click_commands:
- # - '[close]'
- # right_click_commands:
- # - '[player] spawn'
- #
- #
- # You can specify if a GUI menu should be loaded from another file:
- #
- # gui_menus:
- # <menuName>:
- # file: 'menuName.yml'
- #
- # This allows you to keep your config clean and not have tons of GUI menus cluttering it.
- # The file format the GUI menu is loaded from must end in .yml
- # GUI menus loaded from other configuration files must follow a specific format as well...
- # 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.
- # After that is done, use /dm reload and DeluxeMenus will create a folder and file specific to the GUI menu you specified.
- # If the file specified is created by DeluxeMenus (because it did not exist), a default GUI menu layout will be saved to that file.
- # From here you can edit it to your liking and use /dm reload to update your GUI menu!
- #
- # This loading from external config files is only available for gui menus and will not work for click menus yet....
- #
- # banner_meta must be listed with a specific format:
- # banner_meta:
- # - <DyeColor>;<PatternType>
- #
- # Valid DyeColor names can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html
- # Valid PatternTypes can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html
- # ==============================================================
- #
- # Click requirement information
- #
- # You can add 'click requirements' to left and right click commands'
- # These are defined per item and must follow a specific format:
- #
- # 'item_one':
- # material: DIAMOND
- # slot: 3
- # left_click_commands:
- # - '[close]'
- # - '[message] You were charged 100 dollars for clicking that item!'
- # - '[console] eco take %player% 100'
- # left_click_requirement:
- # expression: '%vaulteco_balance% > 100'
- # deny_commands:
- # - '[close]'
- # - '[message] &cYou dont have 100 dollars to click that item'
- # right_click_commands:
- # - '[close]'
- # - '[message] You had permission to click that item!'
- # right_click_requirement:
- # expression: 'BukkitPlayer.hasPermission("some.permission.toclick")'
- # deny_commands:
- # - '[close]'
- # - '[message] &cYou dont have permission to click that item'
- #
- # Every left/right_click_requirement MUST have an expression specified that would return a boolean (true/false)
- # These expressions must also follow JavaScript format as they are all string contains based!
- #
- # deny_commands: are optional and will be executed if the expression returns false.
- # You may use placeholders in your Javascript expressions to evaluate if the player meets the requirement or not.
- # 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
- #
- # BukkitPlayer - references the Player object your expression is evaluating.
- # BukkitServer - references Bukkit.getServer() in the Bukkit API.
- #
- # The choice to use this system to evaluate if a player meets requirements to click an item was an easy choice.
- # This way I do not have to hook into every plugin to check if a player meets the requirement to click an item successfully.
- # You can simply use placeholders, or the keywords provided to give you access to the Player and Server objects.
- # If you want to check if a player has enough money, simply use an expression like so:
- #
- # expression: '%vaulteco_balance% >= 100' (checks if players balance is greater than or equal to 100)
- # If you want to charge the player, simply run the economy command to take the amount from the players balance in your click_commands
- # which will be executed if the player meets the requirement!
- # ==============================================================
- #
- # View requirement information
- #
- # You can add a 'view requirement' to an item if it has a priority value set for it
- # The view requirement has replaced the 'permission' entry for items
- # This allows you to specify a specific requirement in string contains for the item to be shown
- # In order to use view requirements, the item must have a priority value and a valid string contains expression
- # that returns true or false.
- #
- # 'item_one':
- # material: DIAMOND
- # slot: 3
- # priority: 1
- # view_requirement: '%vaulteco_balance% > 100'
- # 'item_two':
- # material: IRON_INGOT
- # slot: 3
- # priority: 2
- # view_requirement: 'BukkitPlayer.hasPermission("some.permission")'
- # 'item_three':
- # material: STONE
- # slot: 3
- # priority: 3
- #
- # 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.
- # 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
- # 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
- # a higher priority.
- #
- # You may use placeholders in your Javascript expressions to evaluate if the player meets the requirement or not.
- # 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
- #
- # BukkitPlayer - references the Player object your expression is evaluating.
- # BukkitServer - references Bukkit.getServer() in the Bukkit API.
- #
- # The choice to use this system to evaluate if a player meets requirements to click an item was an easy choice.
- # This way I do not have to hook into every plugin to check if a player meets the requirement to click an item successfully.
- # You can simply use placeholders, or the keywords provided to give you access to the Player and Server objects.
- # If you want to check if a player has enough money, simply use an expression like so:
- #
- # view_requirement: '%vaulteco_balance% >= 100' (checks if players balance is greater than or equal to 100)
- # ==============================================================
- #
- #
- # You do not need to specify item options that you don't use!
- # The only required entries for a gui menu item to be valid are:
- #
- # A valid material
- # A valid slot
- #
- # Every item in the items list must have a unique <item identifier>
- #
- # If you choose to update placeholders for a specific item, you must specify update_interval: <time>
- # in the GUI menu options for the specific GUI menu.
- # Only GUI menus with at least one item that has update: true will update those specific items placeholders.
- #
- # Every click_command must start with a specific identifier to know what to do for the execution.
- # Valid click_command identifiers:
- #
- # [console] - Execute a command from the console
- # Usage: - '[console] <command with false slash>'
- #
- # [player] - Execute a command for the menu viewer
- # Usage: - '[player] <command with false slash>'
- #
- # [commandevent] - Fire a PlayerCommandPreprocessEvent for commands that do not use the bukkit command system
- # Usage: - '[commandevent] <command with false slash>'
- #
- # [message] - Send a message to the menu viewer
- # Usage: - [message] <message to send to the player
- #
- # [openguimenu] - Open a GUI menu (can only be used in GUI menu click_commands)
- # Usage: - '[openguimenu] <guiMenuName>'
- #
- # [connect] - Connect to the specified bungee server
- # Usage: - '[connect] <serverName>'
- #
- # [close] - Close the viewers open menu
- # Usage: - '[close]
- #
- # [json] - Send a json message to the menu viewer
- # Usage: - '[json] {"text":"message"}'
- #
- #
- #
- # You can delay any of the click command being performed by ending the command with
- # <delay=(time in TICKS)>
- # example:
- # - '[close]'
- # - '[message] it has been 5 seconds since the menu closed!<delay=100>'
- # - '[message] Here is some money for waiting 10 seconds!<delay=200>'
- # - '[console] eco give %player_name% 100<delay=200>'
- #
- # A delay should NOT be added to the [close] or [openguimenu] actions
- # as it could potentially cause unknown issues or glitches with menus.
- #
- # A NOTE WHEN EDITING THIS OR ANY DeluxeMenus CONFIGURATION FILE:
- # This config is sensitive to yaml formatting errors
- # KEEP A BACKUP WHEN EDITING YOUR FILE BEFORE UPLOADING TO YOUR SERVER!!!
- # Make sure every String you modify or add is enclosed in 'apostrophes
- check_updates: true
- gui_menus:
- upgrade:
- menu_title: '&aExample GUI menu'
- open_requirement:
- requirements:
- requirement:
- efficiencyreq1:
- type: javascript
- expression: '%checkitem_inhand,mat:DIAMOND_PICKAXE%.toString().toLowerCase().includes("pickaxe")'
- open_command:
- - 'upgrades'
- - 'upgrade'
- - 'pickupgrade'
- - 'upgradepick'
- - 'token shop'
- - 'enchant'
- - 'tokenshop'
- - 'warp enchant'
- size: 9
- items:
- # enchant:
- # material:
- # data: 0
- # amount: 1
- # slot:
- # priority: 1
- # display_name: '&9&l【✦】【✦】'
- # enchantments:
- # - 'durability;1'
- # hide_enchantments: true
- # hide_attributes: true
- # view_requirement:
- # req1:
- # type: string equals ignorecase
- # input: '%checkitem_mat:DIAMOND_PICKAXE,inhand%'
- # output: 'true'
- # req2:
- # type: '>='
- # input: '%tokenenchant_token_num%'
- # output: '%tokenenchant__cost%'
- # lore:
- # - '&9&lCurrent Level: &7%tokenenchant__level%'
- # - '&9&lMaximum Level: &7%tokenenchant__max%'
- # - '&9&lLevelup Cost: %7%tokenenchant__cost%'
- # click_commands:
- # - '[console] te enchant %name% xxx'
- # - '[console] te remove %name% %tokenenchant__cost%'
- efficiency:
- material: 403
- data: 0
- amount: 1
- slot: 20
- priority: 1
- display_name: '&9&l【✦】 Efficiency 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_EFFICIENCY_level%'
- - '&9&lMaximum Level: &7%tokenenchant_EFFICIENCY_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_EFFICIENCY_cost%'
- click_commands:
- - '[console] te enchant %name% efficiency'
- haste:
- material: 38
- data: 2
- amount: 1
- slot: 21
- priority: 1
- display_name: '&9&l【✦】 Haste 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_HASTE_level%'
- - '&9&lMaximum Level: &7%tokenenchant_HASTE_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_HASTE_cost%'
- click_commands:
- - '[console] te enchant %name% haste'
- drill:
- material: 278
- data: 0
- amount: 1
- slot: 22
- priority: 1
- display_name: '&9&l【✦】 Drill 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_DRILL_level%'
- - '&9&lMaximum Level: &7%tokenenchant_DRILL_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_DRILL_cost%'
- click_commands:
- - '[console] te enchant %name% drill'
- tokenminer:
- material: 388
- data: 0
- amount: 1
- slot: 23
- priority: 1
- display_name: '&9&l【✦】 TokenMiner 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_TOKENMINER_level%'
- - '&9&lMaximum Level: &7%tokenenchant_TOKENMINER_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_TOKENMINER_cost%'
- click_commands:
- - '[console] te enchant %name% tokenminer'
- luckymining:
- material: 41
- data: 0
- amount: 1
- slot: 24
- priority: 1
- display_name: '&9&l【✦】 LuckyMining 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_LUCKYMINING_level%'
- - '&9&lMaximum Level: &7%tokenenchant_LUCKYMINING_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_LUCKYMINING_cost%'
- click_commands:
- - '[console] te enchant %name% luckymining'
- fortune:
- material: 266
- data: 0
- amount: 1
- slot: 29
- priority: 1
- display_name: '&9&l【✦】 Fortune 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_FORTUNE_level%'
- - '&9&lMaximum Level: &7%tokenenchant_FORTUNE_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_FORTUNE_cost%'
- click_commands:
- - '[console] te enchant %name% fortune'
- speed:
- material: 353
- data: 0
- amount: 1
- slot: 30
- priority: 1
- display_name: '&9&l【✦】 Speed 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_SPEED_level%'
- - '&9&lMaximum Level: &7%tokenenchant_SPEED_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_SPEED_cost%'
- click_commands:
- - '[console] te enchant %name% speed'
- tile:
- material:
- data: 0
- amount: 1
- slot: 31
- priority: 1
- display_name: '&9&l【✦】 Tile 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_TILE_level%'
- - '&9&lMaximum Level: &7%tokenenchant_TILE_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_TILE_cost%'
- click_commands:
- - '[console] te enchant %name% tile'
- jump:
- material: 414
- data: 0
- amount: 1
- slot: 32
- priority: 1
- display_name: '&9&l【✦】 Jump 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_JUMP_level%'
- - '&9&lMaximum Level: &7%tokenenchant_JUMP_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_JUMP_cost%'
- click_commands:
- - '[console] te enchant %name% jump'
- explosive:
- material: 46
- data: 0
- amount: 1
- slot: 33
- priority: 1
- display_name: '&9&l【✦】 Explosive 【✦】'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement: false
- lore:
- - '&9&lCurrent Level: &7%tokenenchant_EXPLOSIVE_level%'
- - '&9&lMaximum Level: &7%tokenenchant_EXPLOSIVE_max%'
- - '&9&lLevelup Cost: %7%tokenenchant_EXPLOSIVE_cost%'
- click_commands:
- - '[console] te enchant %name% explosive'
- # nopick:
- # material: 101
- # data: 0
- # amount: 1
- # slot:
- # priority: 2
- # display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- # enchantments:
- # - 'durability;1'
- # hide_enchantments: true
- # hide_attributes: true
- # view_requirement:
- # req1:
- # type: string equals ignorecase
- # input: '%checkitem_mat:DIAMOND_PICKAXE,inhand%'
- # output: 'true'
- # req1:
- # type: '>='
- # input: '%tokenenchant_token_num%'
- # output: '%tokenenchant_explosive_cost%'
- # lore:
- # - '&cError!'
- # click_commands:
- # - '[close]'
- # - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- efficiencynopick:
- material: 101
- data: 0
- amount: 1
- slot: 20
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- efficiencynopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_EFFICIENCY_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- hastenopick:
- material: 101
- data: 0
- amount: 1
- slot: 21
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- hastnopickreq:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_HASTE_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- drillnopick:
- material: 101
- data: 0
- amount: 1
- slot: 22
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- drillnopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_DRILL_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- tokenminernopick:
- material: 101
- data: 0
- amount: 1
- slot: 23
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- tokenminernopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_TOKENMINER_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- luckyminingnopick:
- material: 101
- data: 0
- amount: 1
- slot: 24
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- luckyminingnopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_LUCKYMINING_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- fortunenopick:
- material: 101
- data: 0
- amount: 1
- slot: 29
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- fortunenopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_FORTUNE_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- speednopick:
- material: 101
- data: 0
- amount: 1
- slot: 30
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- speednopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_SPEED_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- tilenopick:
- material: 101
- data: 0
- amount: 1
- slot: 31
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- enchantments:
- - 'durability;1'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- tilenopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_TILE_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- jumpnopick:
- material: 101
- data: 0
- amount: 1
- slot: 32
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- jumpnopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_JUMP_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
- explosivenopick:
- material: 101
- data: 0
- amount: 1
- slot: 33
- priority: 2
- display_name: '&c&l(!) Please Hold a Pickaxe (!)'
- hide_enchantments: true
- hide_attributes: true
- view_requirement:
- requirements:
- explosivenopickreq2:
- type: '<'
- input: '%tokenenchant_token_num%'
- output: '%tokenenchant_EXPLOSIVE_cost%'
- lore:
- - '&cError!'
- click_commands:
- - '[close]'
- - '[message] &c&l(!) Please Hold a Pickaxe (!)'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement