🇱🇷
zMenu
Marketplace
English
English
  • 🍾Getting started
  • 🔌Installing zMenu
  • ➕Supported Plugins
  • 👍zMenu+
  • â›°ī¸Configurations
    • â„šī¸Informations
    • 📜Commands and Permissions
    • đŸĒ§PlaceHolder
    • How to create an inventory step by step
    • 👨‍đŸ’ģInventories
    • âšī¸Buttons
    • 🏁Requirements
    • â˜ĸī¸Actions
    • đŸĒItems
    • Global Placeholders
    • 🔋Patterns
    • Commands
    • 🛝Player data
    • đŸĻŦConfig.json
  • API
    • â„šī¸Informations
    • Create Button
    • Create Material Loader
    • Create ButtonOption
    • Load Inventory
    • Fast Events
  • đŸ—ƒī¸Plugin's files
  • 🕍Example GUI menus
Powered by GitBook
On this page
  • Global Placeholders
  • Modifications
  • upper
  • lower
  • capitalize
  • add_one
  • remove_one
Edit on GitHub
  1. Configurations

Global Placeholders

In the global-placeholders.yml file, you can define values that will be available across all inventory configuration files. This helps streamline your configurations by centralizing common placeholders.

Global Placeholders

example-a: "Hey im an example !"

example-b:
  - "Dont forgot"
  - "To purchase zEssentials"

You can define any value for the placeholders. If you define a list, the placeholder must be used within a list.

Example:

item-in-second-page:
  type: INVENTORY
  slot: 22
  page: 2
  inventory: "basic_inventory"
  plugin: "zMenu"
  item:
    material: COMPASS
    name: "&fOpen basic inventory &8- &7%example-a%" # Use of global placeholder
    lore:
      - "&7Click here for open"
      - "&7the &fbasic inventory"
      - "%example-b%" # Use of global placeholder

Modifications

upper

%upper_<placeholder name>% transforms your text to uppercase.


lower

%lower_<placeholder name>% transforms your text to lowercase.


capitalize

%capitalize_<placeholder name>% capitalizes your text (the first letter will be uppercase, and the rest lowercase).


add_one

%add_one_<placeholder name>% adds 1 to your placeholder. This only works if the value is a number.


remove_one

%remove_one_<placeholder name>% subtracts 1 from your placeholder. This only works if the value is a number.

PreviousItemsNextPatterns

Last updated 1 month ago

â›°ī¸