- Start of the translation of the plugin documentation in French. If you want to translate zMenu documentation into your language, please contact me.
- You can use multiple placeholders now, do like this:
Code (YAML):
placeholders:
- placeholder
: <your placeholder>
value
: <your value>
action
: <your action>
- placeholder
: <your placeholder>
value
: <your value>
action
: <your action
>
Be careful, you must put an
s to
placeholder, otherwise it will not work.
- You can use now the text placeholder instanceof placeHolder
- Start new way to configure the plugin, you have now requirement and actions:
A requirement consists of a permission list to check (placeholder, permission, regex and item), an action list on success and an action list on deny.
You have
12 actions available:
- broadcast
- broadcast_sound
- close
- connect
- console_command
- data
- inventory
- message
- chat
- player_command
- sound
- refresh
Example for
view_requirement:
Code (YAML):
view_requirement:
deny:
- type
: chat
messages
:
-
"msg Maxlego08 test"
success:
- type
: sound
sound
: ENTITY_PLAYER_LEVELUP
requirements:
- type
: permission
permission
:
"admin.use"
- type
: permission
permission
:
"use.pro.config"
- type
: placeholder
placeholder
:
"%player_gamemode%"
value
:
"CREATIVE"
action
: equals_string
- type
: placeholder
placeholder
:
"%player_is_flying%"
value
:
"yes"
action
: equals_string
Example for
open_requirement:
Code (YAML):
open_requirement:
requirements:
- type
: regex
input
:
"%player_item_in_hand%"
regex
:
"(NETHERITE_|DIAMOND_|IRON_|GOLDEN_|STONE_|WOODEN_|LEATHER_|BOW|CROSSBOW|FISHING_ROD|SHEARS|SHIELD|TRIDENT|TURTLE_HELMET|ELYTRA|FLINT_AND_STEEL)"
deny:
- type
: message
messages
:
-
"&cYou doesn't have an item in your hand."
Example for
click_requirement:
Code (YAML):
click_requirement:
left_click:
clicks
:
- LEFT
- SHIFT_LEFT
requirements:
- type
: placeholder
placeholder
:
"%player_gamemode%"
value
:
"CREATIVE"
action
: equals_string
deny:
- type
: inventory
inventory
:
"example"
plugin
:
"zMenu"
success:
- type
: message
messages
:
-
"well <red>done <green>you did it"
More information on the plugin documentation:
https://docs.zmenu.dev/
- Add alias for placeholder action:
- BOOLEAN: `b=`
- EQUALS_STRING: `s=`
- EQUALSIGNORECASE_STRING: `s==`
- CONTAINS_STRING: `sc`
- EQUAL_TO: `==`
- SUPERIOR: `>`
- SUPERIOR_OR_EQUAL: `>=`
- LOWER: `<`
- LOWER_OR_EQUAL: <`=`
- Enable version checker
- Improve javadocs
- Remove example.yml, example2.yml and example3.yml in inventories folder
- Remove example.yml in commands folder
- Rename pattern1.yml to pattern_example.yml
- Edit commands.yml file with new default config
- Add pro_inventory.yml in inventory folder
- Fix component for inventory name
- Add cache system for ComponentMeta (optimizes code and makes it more efficient)