Chapter 4

Cachy

The documentation of Cachy, a plugin that stores data of online players

Subsections of Cachy

Config

# 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

Query

This page provides information about the query system, which is used to retrieve data from the Cache Holder.

Format

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>

Types

TypeArgumentDescriptionExampleExplanation
name<name>Get the value of the player based on their <name>jump;name;HSGamerRetrieve 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-ec81e758f5a1Retrieve the value of the player with the UUID 7acc67dc-8b84-4f8d-b7ad-ec81e758f5a1 at the Cache Holder named jump
Chapter 4

Hook

Details about the hooks provided by the plugin.

Subsections of Hook

PlaceholderAPI

The plugin provides a PlaceholderAPI placeholder to allow you to query data from the Group Holder.

Usage

%cachy_<query>%

Check the Query for more information about how to set the <query>

Example

%cachy_jump;name;HSGamer%
%cachy_jump;uuid;7acc67dc-8b84-4f8d-b7ad-ec81e758f5a1%
%cachy_jump;name;{player_name}%
%cachy_jump;uuid;{player_uuid}%