MenuMetaMod - Client Menu Framework:
This plugin aids client server communication by providing players with numbered menus. It is designed to be used by other plugins, and also supports server-side yml configured menus.
Features:
- Send Menu to Client
- Handle response, i.e. make player execute a command
- Menu with Value parameter after selection: command is then executed with the parameter as a suffix
- yml Config file to create static menus
Download the latest version: MenuMetaMod.jar Requirements: Spout
Version: v0.8 This plugin aids client server communication by providing players with numbered menus. It is designed to be used by other plugins, and also supports server-side yml configured menus.
Outdated - Sample Plugin (Menu for MyWarp)
- requires MyWarp
- Source Code
Changelog:
Version 0.8
- Initial version using Spout
- Misc code tiding
Version 0.7
- Allow multiple commands for menu options ';' separated
- Static 'Cancel' Menu option ('0' on last page)
Version 0.6
- Allow any text for valuemenus
- Removed some test code
Version 0.5.1
- Everything inc MCMenu updated to 1.4_01
- Changed quick menu command to /qm
Version 0.5
- Added configurable menus (based on comment from RustyDagger)
- Bug fixes
- Updated to CB 612
Version 0.4
- Bug fixes (updated bukkit)
Version 0.3
- Added Value Menu, for parameterized commands
- Bug fixes
Version 0.2
- Pages managed for > 10 options / commands
Version 0.1
- Options are numbered 1-9,0
Future
- Multiple .yml files , for easy sharing of /qm 'filename'
- Remove All the printlns (add 'debug: true' config option)
- Parametrise config options such as "%p" = Name of the calling player.
Example usage
MenuMetaMod.sendMenu(player, new MetaModMenu(title, optionText[], commands[]) ); // optionText = String[] of Option Titles // commands = String[] of Commands to execute on selection
When the player chooses an option, the plugin makes the player execute the command at the same index in the commands array. (eg. "/warp spawn" is executed)
For a full implementation See line 100 of MyWarpMenu.java, which gets a list of the warps available to the player, creates the arrays, and sends the menu.
Config file usage
On first launch, the plugin will create an empty config.yml in the plugins/MenuMetaMod/ dir. Fill it up with content, following the syntax of the example file: Sample config.yml
Menus will be sent to the user following the command:
/qm ('command' in config.yml) e.g. /qm menu1 the command [code]/qm[/code] will send the 1st configured menu
Screenshots
With MyWarpMenu
ClientSide Video
Old but approximate: MetaMenuMod