Chapter 4
Cachy
The documentation of Cachy, a plugin that stores data of online players
The documentation of Cachy, a plugin that stores data of online players
# The settings for each holder
holders:
player-name:
type: player
data-type: NAME
jump:
type: placeholder
placeholder: '%statistic_jump%'
mine:
type: statistic
statistic: mine_block
material: diamond_ore
# The type of storage the plugin will use to store the value
# Available: FLAT, YAML, JSON, SQLITE, NEW-SQLITE, MYSQL
storage-type: flat
This page provides information about the query system, which is used to retrieve data from the Cache Holder.
The format of a query is as follows:
<holder>;<type>;<args>
<holder>
: The Top Holder to query.<type>
: The type of data to retrieve.<args>
: Additional arguments for the query.If the <type>
does not require any arguments, the query can be simplified to:
<holder>;<type>
Type | Argument | Description | Example | Explanation |
---|---|---|---|---|
name | <name> | Get the value of the player based on their <name> | jump;name;HSGamer | Retrieve the value of the player named HSGamer at the Cache Holder named jump |
uuid | <uuid> | Get the value of the player based on their <uuid> | jump;uuid;7acc67dc-8b84-4f8d-b7ad-ec81e758f5a1 | Retrieve the value of the player with the UUID 7acc67dc-8b84-4f8d-b7ad-ec81e758f5a1 at the Cache Holder named jump |
Details about the hooks provided by the plugin.
The plugin provides a PlaceholderAPI placeholder to allow you to query data from the Group Holder.
%cachy_<query>%
Check the Query for more information about how to set the <query>
%cachy_jump;name;HSGamer%
%cachy_jump;uuid;7acc67dc-8b84-4f8d-b7ad-ec81e758f5a1%
%cachy_jump;name;{player_name}%
%cachy_jump;uuid;{player_uuid}%