Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # warps GUI menu configuration
- #
- # configuration layout:
- #
- # menu_title: '<title of menu goes here>'
- # inventory_type: '<add this option if you want to create a menu of a different InventoryType aside from chest>'
- # command: <command to open this menu goes here>
- # 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%>'>
- # entitytype: <name of entity type for mob eggs> https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html'>
- # 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>
- # permission: <the lowest priority item a player has permission 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>
- # display_name: <display name to show for this item>
- # 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'
- # 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'
- #
- # All keys aside from update_interval are required for this menu to be valid and loaded!
- # The only options for an item to be considered valid are material and slot!
- #
- # 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 now 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 javascript 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 javascript for the item to be shown
- # In order to use view requirements, the item must have a priority value and a valid javascript 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)
- # ==============================================================
- menu_title: ' &c&lMunch&c&lcraft &c&lWarps'
- open_command: warp
- size: 54
- update_interval: 1
- items:
- '1':
- material: head;%player_name%
- slot: 4
- update: true
- display_name: '&cStatistics'
- lore:
- - '&7Username: &c%player_name%'
- - '&7Rank: &c%ezrankspro_rank%'
- - '&7Joined: &c%player_first_join_date%'
- - '&7Playtime: &c%statistic_time_played%'
- - '&7Ping: &c%player_ping%'
- - '&7Multiplier: &c%autosell_total_multiplier%'
- '2':
- material: head;MHF_ArrowLeft
- slot: 48
- update: true
- display_name: '&cBack'
- left_click_commands:
- - '[openguimenu] menu'
- right_click_commands:
- - '[openguimenu] menu'
- '3':
- material: head;MHF_ArrowRight
- slot: 50
- update: true
- display_name: '&cNext'
- left_click_commands:
- - '[openguimenu] menu'
- right_click_commands:
- - '[openguimenu] menu'
- '4':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 10
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.a");
- display_name: '&cWarp A'
- lore:
- - '&7Makes you go to Warp A.'
- left_click_commands:
- - '[player] warp a'
- - '[close]'
- right_click_commands:
- - '[player] warp a'
- - '[close]'
- '4.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 10
- priority: 2
- display_name: '&cWarp A'
- lore:
- - '&7You do not have access!'
- '5':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 11
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.b");
- display_name: '&cWarp B'
- lore:
- - '&7Makes you go to Warp B.'
- left_click_commands:
- - '[player] warp b'
- - '[close]'
- right_click_commands:
- - '[player] warp b'
- - '[close]'
- '5.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 11
- priority: 2
- display_name: '&cWarp B'
- lore:
- - '&7You do not have access!'
- '6':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 12
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.c");
- display_name: '&cWarp C'
- lore:
- - '&7Makes you go to Warp C.'
- left_click_commands:
- - '[player] warp c'
- - '[close]'
- right_click_commands:
- - '[player] warp c'
- - '[close]'
- '6.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 12
- priority: 2
- display_name: '&cWarp C'
- lore:
- - '&7You do not have access!'
- '7':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 13
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.d");
- display_name: '&cWarp D'
- lore:
- - '&7Makes you go to Warp D.'
- left_click_commands:
- - '[player] warp d'
- - '[close]'
- right_click_commands:
- - '[player] warp d'
- - '[close]'
- '7.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 13
- priority: 2
- display_name: '&cWarp D'
- lore:
- - '&7You do not have access!'
- '8':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 14
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.e");
- display_name: '&cWarp E'
- lore:
- - '&7Makes you go to Warp E.'
- left_click_commands:
- - '[player] warp e'
- - '[close]'
- right_click_commands:
- - '[player] warp e'
- - '[close]'
- '8.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 14
- priority: 2
- display_name: '&cWarp E'
- lore:
- - '&7You do not have access!'
- '9':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 15
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.f");
- display_name: '&cWarp F'
- lore:
- - '&7Makes you go to Warp F.'
- left_click_commands:
- - '[player] warp f'
- - '[close]'
- right_click_commands:
- - '[player] warp f'
- - '[close]'
- '9.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 15
- priority: 2
- display_name: '&cWarp F'
- lore:
- - '&7You do not have access!'
- '10':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 16
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.g");
- display_name: '&cWarp G'
- lore:
- - '&7Makes you go to Warp G.'
- left_click_commands:
- - '[player] warp g'
- - '[close]'
- right_click_commands:
- - '[player] warp g'
- - '[close]'
- '10.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 16
- priority: 2
- display_name: '&cWarp G'
- lore:
- - '&7You do not have access!'
- '11':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 19
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.h");
- display_name: '&cWarp H'
- lore:
- - '&7Makes you go to Warp H.'
- left_click_commands:
- - '[player] warp h'
- - '[close]'
- right_click_commands:
- - '[player] warp h'
- - '[close]'
- '11.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 19
- priority: 2
- display_name: '&cWarp H'
- lore:
- - '&7You do not have access!'
- '12':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 20
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.i");
- display_name: '&cWarp I'
- lore:
- - '&7Makes you go to Warp I.'
- left_click_commands:
- - '[player] warp i'
- - '[close]'
- right_click_commands:
- - '[player] warp i'
- - '[close]'
- '12.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 20
- priority: 2
- display_name: '&cWarp I'
- lore:
- - '&7You do not have access!'
- '13':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 21
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.j");
- display_name: '&cWarp J'
- lore:
- - '&7Makes you go to Warp J.'
- left_click_commands:
- - '[player] warp j'
- - '[close]'
- right_click_commands:
- - '[player] warp j'
- - '[close]'
- '13.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 21
- priority: 2
- display_name: '&cWarp J'
- lore:
- - '&7You do not have access!'
- '14':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 22
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.k");
- display_name: '&cWarp K'
- lore:
- - '&7Makes you go to Warp K.'
- left_click_commands:
- - '[player] warp k'
- - '[close]'
- right_click_commands:
- - '[player] warp k'
- - '[close]'
- '14.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 22
- priority: 2
- display_name: '&cWarp K'
- lore:
- - '&7You do not have access!'
- '15':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 23
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.l");
- display_name: '&cWarp L'
- lore:
- - '&7Makes you go to Warp L.'
- left_click_commands:
- - '[player] warp l'
- - '[close]'
- right_click_commands:
- - '[player] warp l'
- - '[close]'
- '15.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 23
- priority: 2
- display_name: '&cWarp L'
- lore:
- - '&7You do not have access!'
- '16':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 24
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.m");
- display_name: '&cWarp M'
- lore:
- - '&7Makes you go to Warp M.'
- left_click_commands:
- - '[player] warp m'
- - '[close]'
- right_click_commands:
- - '[player] warp m'
- - '[close]'
- '16.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 24
- priority: 2
- display_name: '&cWarp M'
- lore:
- - '&7You do not have access!'
- '17':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 25
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.n");
- display_name: '&cWarp N'
- lore:
- - '&7Makes you go to Warp N.'
- left_click_commands:
- - '[player] warp n'
- - '[close]'
- right_click_commands:
- - '[player] warp n'
- - '[close]'
- '17.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 25
- priority: 2
- display_name: '&cWarp N'
- lore:
- - '&7You do not have access!'
- '18':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 28
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.o");
- display_name: '&cWarp O'
- lore:
- - '&7Makes you go to Warp O.'
- left_click_commands:
- - '[player] warp o'
- - '[close]'
- right_click_commands:
- - '[player] warp o'
- - '[close]'
- '18.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 28
- priority: 2
- display_name: '&cWarp O'
- lore:
- - '&7You do not have access!'
- '19':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 29
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.p");
- display_name: '&cWarp P'
- lore:
- - '&7Makes you go to Warp P.'
- left_click_commands:
- - '[player] warp p'
- - '[close]'
- right_click_commands:
- - '[player] warp p'
- - '[close]'
- '19.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 29
- priority: 2
- display_name: '&cWarp P'
- lore:
- - '&7You do not have access!'
- '20':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 30
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.q");
- display_name: '&cWarp Q'
- lore:
- - '&7Makes you go to Warp Q.'
- left_click_commands:
- - '[player] warp q'
- - '[close]'
- right_click_commands:
- - '[player] warp q'
- - '[close]'
- '20.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 30
- priority: 2
- display_name: '&cWarp Q'
- lore:
- - '&7You do not have access!'
- '21':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 31
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.r");
- display_name: '&cWarp R'
- lore:
- - '&7Makes you go to Warp R.'
- left_click_commands:
- - '[player] warp r'
- - '[close]'
- right_click_commands:
- - '[player] warp r'
- - '[close]'
- '21.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 31
- priority: 2
- display_name: '&cWarp R'
- lore:
- - '&7You do not have access!'
- '22':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 32
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.t");
- display_name: '&cWarp S'
- lore:
- - '&7Makes you go to Warp S.'
- left_click_commands:
- - '[player] warp s'
- - '[close]'
- right_click_commands:
- - '[player] warp s'
- - '[close]'
- '22.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 32
- priority: 2
- display_name: '&cWarp S'
- lore:
- - '&7You do not have access!'
- '23':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 33
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.t");
- display_name: '&cWarp T'
- lore:
- - '&7Makes you go to Warp T.'
- left_click_commands:
- - '[player] warp t'
- - '[close]'
- right_click_commands:
- - '[player] warp t'
- - '[close]'
- '23.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 33
- priority: 2
- display_name: '&cWarp T'
- lore:
- - '&7You do not have access!'
- '24':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 34
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.u");
- display_name: '&cWarp U'
- lore:
- - '&7Makes you go to Warp U.'
- left_click_commands:
- - '[player] warp u'
- - '[close]'
- right_click_commands:
- - '[player] warp u'
- - '[close]'
- '24.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 34
- priority: 2
- display_name: '&cWarp U'
- lore:
- - '&7You do not have access!'
- '25':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 38
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.v");
- display_name: '&cWarp V'
- lore:
- - '&7Makes you go to Warp V.'
- left_click_commands:
- - '[player] warp v'
- - '[close]'
- right_click_commands:
- - '[player] warp v'
- - '[close]'
- '25.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 38
- priority: 2
- display_name: '&cWarp V'
- lore:
- - '&7You do not have access!'
- '27':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 39
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.w");
- display_name: '&cWarp W'
- lore:
- - '&7Makes you go to Warp W.'
- left_click_commands:
- - '[player] warp w'
- - '[close]'
- right_click_commands:
- - '[player] warp w'
- - '[close]'
- '27.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 39
- priority: 2
- display_name: '&cWarp W'
- lore:
- - '&7You do not have access!'
- '29':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 40
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.x");
- display_name: '&cWarp X'
- lore:
- - '&7Makes you go to Warp X.'
- left_click_commands:
- - '[player] warp x'
- - '[close]'
- right_click_commands:
- - '[player] warp x'
- - '[close]'
- '29.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 40
- priority: 2
- display_name: '&cWarp X'
- lore:
- - '&7You do not have access!'
- '30':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 41
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.y");
- display_name: '&cWarp Y'
- lore:
- - '&7Makes you go to Warp Y.'
- left_click_commands:
- - '[player] warp y'
- - '[close]'
- right_click_commands:
- - '[player] warp y'
- - '[close]'
- '30.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 41
- priority: 2
- display_name: '&cWarp Y'
- lore:
- - '&7You do not have access!'
- '26':
- material: STAINED_GLASS_PANE
- data: 5
- amount: 1
- slot: 42
- priority: 1
- view_requirement: BukkitPlayer.hasPermission("essentials.warps.z");
- display_name: '&cWarp Z'
- lore:
- - '&7Makes you go to Warp Z.'
- left_click_commands:
- - '[player] warp z'
- - '[close]'
- right_click_commands:
- - '[player] warp z'
- - '[close]'
- '26.1':
- material: STAINED_GLASS_PANE
- data: 14
- amount: 1
- slot: 42
- priority: 2
- display_name: '&cWarp Z'
- lore:
- - '&7You do not have access!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement