🇱🇷
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
  • Commands
  • Placeholders
Edit on GitHub
  1. Configurations

Player data

Player data system

PreviousCommandsNextConfig.json

Last updated 1 year ago

With zMenu you can store data for the player and use it with placeholders. This way you can create counters, cooldowns and much more !

Each data contains a key, a value and an expiration date. If you put 0 then the data will never expire. The expiration date is a timestamp.

Commands

The permission to use these commands is: zmenu.players

Command
Description

/zm players

Displays the list of commands for the players' data.

/zm players set <player> <key> <expiration> <value>

Set new player data. You must set the expiration time in seconds. Put 0 to have no expiration.

/zm players remove <player> <key>

Remove player data.

/zm players get <player> <key>

Get player data.

/zm players kets <player>

Returns the list of keys of a player.

/zm players clear <player>

Clear player's data.

/zm players clearall

Clear all player's data.

/zm players add <player> <key> <value>

Add a number to a value, works only for numbers.

/zm players subtract <player> <key> <value>

Subtract a number to a value, works only for numbers.

Placeholders

Placeholders can be used in an inventory for displaying an item or for a permission. You can block access to a button with a placeholder. You can see an example .

Placeholder
Description

%zmenu_player_value_<key>%

Returns the value contained in a key.

%zmenu_player_expire_format_<key>%

Returns the expiration time formatted according to a key.

%zmenu_player_expire_<key>%

Returns the expiration time according to a key.

%zmenu_player_key_exist_<key>%

Returns true or false. Allows to know if a key exists.

â›°ī¸
🛝
here