MineMenu
MineMenu
MineMenu offers userfriendly & highly configurable inventory GUIs.
By creating different menus in YAML files, you can let your players use warp menus, a shop menu or a menu to manage additional inventories.
You can add buttons which execute commands, to use the power of other plugins.
Menu Configuration
You can find the menu configuration files in 'plugins/MineMenu/menus/<menu-name>.yml'.
To create a new menu you can simply create a new "<menu name>.yml" file there.
Inside this file you have three basic parameters:
- height - defines the height of your menu. The resulting size will be height * 9.
- tool - defines the material of the menu tool, you can use to open the menu.
- give-tool-to-players - true/false - decides if players will receive the menu tool, when they join your server. Everyone with permission can get the tools with /menu tool.
The Menu-Buttons:
To add menu buttons, create a new section with the name your button should have. Now you have several parameters to configure the appearence and the function of the button:
- pos-x / pos-y - defines the position relative to the left top (0,0).
- material - defines which block is used for the button
- amount - defines the amount of the block
- data - e.g. with materail = wool, data = 0 you get white wool, with data = 14, you get red wool
- description - the description of the button
- enchantments - optional enchantments for the item. (e.g. weapons in a shop)
- commands - a list of commands which will be executed if the player clicks the menu button
- command-as-admin - true/false - decide if the commands will be executed as admin
- costs - defines how much a player has to pay to click this button
- item-info - this will be filled automatically, if you use the /menu edit command
Specials:
You can use 'inventory open' as a command which will open the inventory menu.
You can use 'menu buy' as a command, it will simply give the specific block/item to the player.
Use %PLAYER% or %WORLD% as variables in commands, which will be replaced by the player's name/world who clicked the item.
You need Vault to use the 'costs' function.
Commands
| Name | Permission | Description | User |
|---|---|---|---|
| /menu reload | minemenu.reload | Reloads the menu files. | admin |
| /menu open <menu-name> | minemenu.open | Opens the menu. You can also open menus by using buttons in other menus or the menu-tools. | default |
| /menu edit [menu-name] | minemenu.edit | Lets you edit the current menu. You can also edit menus by using buttons. | admin |
| /menu exit | minemenu.exit | Exits the current menu. You can also exit menus by using buttons. | default |
| /menu tool [menu] | minemenu.tool | Hands you the tools, which let you open menus. | default |
| /inventory open [number] | minemenu.inventory.open | Opens the inventory menu or if you give a number, it opens the given inventory. | default |
| /inventory give <player> | minemenu.inventory.give | Gives the named player access to another inventory. |
admin |
| /inventory del <player> | minemenu.inventory.del | Delete the last added inventory of this player. |
admin |