ClicksPerSecond
  • Overview
  • Basic
    • Setup
    • Displays
  • Commands and permissions
    • Commands
  • Placeholders
    • Internal
    • External (PAPI expansion)
Powered by GitBook
On this page
  • Prerequisites
  • Placeholders
  1. Placeholders

External (PAPI expansion)

External placeholders provided by the plugin via an expansion.

PreviousInternal

Last updated 2 years ago

Prerequisites

If PlaceholderAPI is installed, ClicksPerSecond will automatically register it's own placeholder expansion. Therefore, you will be able to access CPS data externally, from another plugin (e.g. holograms).

The expansion inherits .

Placeholders

The provided placeholders are quite similar to those provided internally, but this list also includes accessing the leaderboard information. All invalid requests will be rendered as unknown.

Online players:

  • %cps_now%: player's current CPS, or unknown if placeholders are replaced against an offline player

Online and offline players:

  • %cps_best_cps%: player's best CPS, or unknown if data are being loaded

  • %cps_best_date%: formatted date at which the best CPS were achieved (see ), or unknown if the best CPS are 0

  • %cps_best_date_millis%: date in millis (since UNIX epoch) at which the best CPS were achieved, or unknown if the best CPS are 0

  • %cps_best_date_formatted%: alias for %cps_best_date%

Leaderboard:

Placeholders will only resolve places greater than 0 and in the range of the cached leaderboard.

If you are using a database, you can configure the fetching limit under data.leaderboard.limit. If you are using the file storage, the cached leaderboard is unlimited and configuring this setting has no effect.

Placeholders referring to an uncached place will be rendered as unknown.

  • %cps_leaderboard_<place>_cps%: the best CPS of the player at the provided place

  • %cps_leaderboard_<place>_uuid%: UUID of the player at the provided place

  • %cps_leaderboard_<place>_name%: name of the player at the provided place, or unknown if not available

  • %cps_leaderboard_<place>_id%: name of the player at the provided place, or UUID if not available

  • %cps_leaderboard_<place>_date_millis%: date in millis (since UNIX epoch) at which the best CPS of the player at the provided place were achieved

  • %cps_leaderboard_<place>_date_formatted%: alias for %cps_leaderboard_<place>_date%

%cps_leaderboard_<place>_date%: formatted date at which the best CPS of the player at the provided place were achieved (see )

internal placeholder settings
date format
date format