- Added command overriding feature
- Added brief versions of variable actions (see updated docs)
- Splitted variable actions into global and personal
- Added existVarp rule to check personal variable without specifying player name
- Fixed specific bug with refreshMenu and closeMenu actions
- Optimized variables saving
- Optimized server ping for BungeeCord rules.
- Added bungeePing field to main config. Now you can disable regular server ping if you don't use BungeeCord rules. By default this param is false.
- Other minor code optimizations.
Hello! This is huge update that comes with many cool features and bug fixes.
Added
- Activator's context. More about it here: https://abstractmenus.github.io/docs/advanced/input.html#activator-context.
- Command builder. Now you can build commands with arguments and use them in your menus (https://abstractmenus.github.io/docs/advanced/input.html#commands-building).
- New item property shieldData to create decorated shields, like banners.
- Notation to add multiple similar actions or rules under same block. More about this here: https://abstractmenus.github.io/docs/advanced/logical.html#using-similar-commands-under-one-block.
- New action clickBlockType to check clicking on block by type.
- New action openMenuCtx to open new menu and forward current activator context.
Changed
- Significantly reduced plugin size due to HOCON library rewriting.
- To use nbt item property, you need to install NBT API plugin. We may not always be able to quickly update the built-in NBT library, so for those who always use the latest version of Spigot, this will be better.
- Removed iRules and imrules blocks for all types, which was marked as deprecated in previous versions. Use logical wrappers for regular rules: https://abstractmenus.github.io/docs/advanced/logical.html#logical-rule-wrappers.
Fixed
- Updated Nashorn (JavaScript engine) version to support Java 17.
- Now skullOwner returns empty head if player profile not found. Also, improved system of profile loading.
- The hdb property now returns empty head if HeadDatabase still not loaded all heads.
- If you use integer numbers in variables, they will be displayed as integers, without floating part.
For developers
As we written in previous update, in this version we changed API in some parts. We also updated API docs and added javadocs (https://abstractmenus.github.io/api/). Main changes:
If you want to update your addons to AM 1.14, you should read docs before. We've rewritten docs. Now it more readable, with more examples.
- Added Variables API
- Modified Menu interface
- Changed Activator class
- Rewritten catalogs API
- Rewritten configuration API
This is fix for modern users.
- Fixed nbt item property for MC 1.18+
- Updated JavaScript engine version to support Java 17
Changes
For developers
- Added miniMessage action. More about this here.
- Added broadcast action.
- Fixed legacy material loading (sometimes server hanged at first menu opening).
- Fixed XP rules and actions.
- Fixed fake error message from mmoitem property.
- Changed skullOwner property backend to custom. Heads loading now should work faster.
- Fixed error about sending plugin message when server disabled.
The next update (AM v1.14) will be more about API upgrading. In general, we planned refactoring of the configuration system backend. This means that all AM extensions won't work after updating to AM 1.14.
Why we need this? With backend updating we will greatly reduce jar file size and make serializing API more friendly.
Apologize in advance for this. This will be first and last time when we change API so much.
- Added support for MC 1.18
- Added ability to make buttons with AIR material. Useful for menus with custom texture.
- group rule now is a list. Works similar to permission rule.
- Fixed several bugs with rules execution order.
Plugin
Documentation
- Added new logical wrappers for rules ("AND", "OR" and "NOT" notation). irules and imrules now deprecated, but still works.
- Added modern "if" format. This similar to "js" but much faster. Old "if" still works but deprecated.
- Added setGamemode action.
- Added swapItems activator (F key by default).
- Added new Bindings system. Now you can easy bind some item property to rules.
- Fixed bug with empty menu after failed plugin reloading.
For developers
- Added new "FAQ" article.
- Added useful information about HOCON format.
- Updated to AM 1.13, including changed API.
- Fixed some spelling.
- Item class now is interface that realised inside plugin, not inside API module.
- Changed item property interfaces. Now there is only ItemProperty interface with additional methods.
