Releases: broken1arrow/MenuLibrary
I now added option to auto clear cache.
If last person close the menu, it will be removed from cache, is used when you use location to create menus.
Fixed issue when open new inventory when use location
Fixed issue when use location and open second menu and the metadata get lost, also change little around the logic to set title.
Made some improvements to getAmountOfViewers() method (fix a spell error and use different way to get amount of players currently viewing inventory). If that are to confusing I will alter that method again.
Added so you get warn if you try open two menu's on same location without set unique key. If you prefer it do this job auto I can do some changes and you will not notices this and have this as option if you want to override old menu (I mean option to force replace old menu in cache).
Did some improvments when cache menu's
You can now set unique key some get combined with the location (this is optional and usage is if you want several players access same menu on x location, i add option you can have several menus at same time on same location).
Full Changelog: 0.63...0.64
change how it save metadata when you use the class to create the item.
The problem is you get it as string you can also get this quotes surrounding your value "".
At least if you use #getNbtApi() method from this api it has two methods to get meta both one you need provide the class to deserialize your data or plain string.
So made a new class called MetaDataWraper you can also use or the old way with map (if you set more metadata an 1) and you have method some support MetaDataWraper (both methods has same name). You have still the old option #setItemMetaData() if you only want to set 1 key and value.
Full Changelog: 0.62...0.63
update api
You have now better color support.
Full Changelog: 0.61...0.62
fixed 1 bug
Missed one check.
Full Changelog: 0.59...0.61
one more small update
Fixed so it should work on 1.19 servers. Probably need update it for 1.19.1 also.
fixed some issues with formating of versions
First update for fix issues try use it on 1.19. will be more fixes if needed.
Full Changelog: 0.58...0.59
added more materials
It will now check more material names (some use different name in 1.12 and older minecraft versions).
Full Changelog: 0.57...0.58
added more options
You can now set inventory type and chose only update one button.