MenuService
General Description
MenuService is a plugin and API which allows plugins to create and use complex menu systems.
Status Update
It's been a long time since an update. I'm sorry for keeping everyone in the dark. With the start of the fall semester, I've been really busy with all of my classes. I've made some large updates to the plugin and have just released a new Beta version. Note that this version is still a beta; there are probably plenty of errors and missing features. Please give it a try and let me know what you find.
MenuService is open source. you can see the source on Github. https://github.com/m0pt0pmatt/MenuService
You can get a 1.6.2 version of the latest jar here: MenuService v0.8 for 1.6.2 For developers, you can get a 1.6.2 version of the latest API here: MenuService API v0.8 for 1.6.2
If you want to see the planned features, check out this Google Document. See what work is being done!
Permissions
Commands
Documentation
I'm working on making some simple tutorials. An example of a menu config file can be found here. Check out this tutorial for beginners: Check it out! Check out this tutorial for developers: Check it out!
@jessefjxm
This is little too complicated. I suggest you make a plugin using the API. You can use the forum's plugin request or request me using PM.
How can I do nothing when the menu is closed? I have to set a command...
Is it possible to add conditional judgement? For example, if I have permission a, it'll show item1 at x,y when I open a menu; if not , it'll show item2.
@EncryptedCurse
Color
How do I use colors in the title?
@H2NCH2COOH
That's perfect! thanks a lot :)
@Beeeceee
I see. If you want the op thing, I'll add it in the next version
You will be able to set commandby: to <target-as-op> and <sender-as-op> for temporary OP
i really like your plugin, and think you're doing a great job, but what you said about OP isn't really true in my opinion. running as op is essentially the same as giving them temporary permissions to do a command. It's like the well known magicspells plugin. to do a magicspell that adds the /lightning command and runs as op, creates a great magic spell that lets you cast lightning under certain conditions.. i think it would be great to have the run as op option :) If you're really agains run as op, then you could consider to add the option to add Temporary permissions whilst the command is being executed :D It would be more work but it would not require run as op situations! don't get me wrong though i really think this is a great plugin, i've worked hours on making menus already, this was just a suggestion :)
@Faldonboy
Because running a command as if the player is OP goes against the concept of permissions, I will not do it. Maybe you can create custom permission nodes for each menu and you can just give those nodes to players, it can save some typing.
Any chance you could also add it so commands can be run as if the player was an OP? Would make it a lot easier and mean we have the option of avoiding having to give permissions for each individual command the menu runs.
@jessefjxm
Try CommandPackage!
Multiple command, custom delay and cooldown!
Simple to use!
@Faldonboy
For the open thing, try CommandPackage, I made it to enhance the power of ItemMenu. It's very easy to use and pretty powerful.
And the reload command is good, I'll add it in the next version.
@H2NCH2COOH
Can you make a plugin that run multiple commands throught only one command? If so ,that must be a great plugin :)
BTW ,can the menu work like a furnace, meaning that we can put specifiv items into specific places to get specific out put?
Could you add an option that re-opens the last menu when you click on an option?
Say I have a menu dedicated to displaying help messages, it would be a lot easier if they clicked on Option one(which runs /help ranks) and have it run the command then automatically open the menu that had that option in it(so they don't have to keep using /menu open help over and over).
A command to reload the config would be nice too (a lot of people just edit the config instead of using the in-game commands)
@QBcrusher
First, the forgetting the command thing I really have no idea. If you have access to the server, check the <menu-file-name>.yml file in the ./plugins/ItemMenu/menus/ If the file contains the right command, then, try find out what will cause the problem and post a ticket.
Second, since a lot of people has asked about multiple commands, delayed commands and your commands with cooldowns, I'll try to make a plugin that can package commands to a list with each commands have custom delay and the package custom cooldown
Finally, thank you for your support and if you have any problem, please tell me and I will try to solve it.
@H2NCH2COOH
Ok that worked thank you. I have a couple other issues though.
First off, some of my options keep forgetting the command I set for them.
Also is there anyway you could integrate cooldowns and warmups for commands? I currently use BoosCoolDowns but they don't apply when you run a command from a menu option.
Great plugin by the way, I'm lovin it so far!
@QBcrusher
I'm sorry, not very good at permissions. I'll try to fix it ASAP
EDIT: I tested it on a server with bPermission and it works fine. And what version of ItemMenu are you using? Please use v1.6.1 if possible. It should fit into CB 1.4.*
I already gave the open menu perm, but it keeps telling non opped players "You do not have permission to run server scripts"
@jessefjxm
The multiple commands thing is impossible. If you need such feature, write your own plugin. If it's simple, PM me and I will make it for you.
As for the color thing, put prefix like ยง1 in front of the string will do. See
Can multiple commands combined to one option? And hope support for colors in item name & lore can be added.