Skip to content

PlaceholderAPI

RageOfFire edited this page Sep 6, 2026 · 1 revision

PlaceholderAPI

Requires PlaceholderAPI 2.11.5 or newer. It's a soft dependency - the plugin works fine without it, you just won't be able to use placeholders in reward messages/commands or the placeholders this plugin exposes.

Using placeholders inside your rewards

Any message or entry in commands can use %player% for the player's name, or any placeholder PlaceholderAPI provides from other plugins, e.g.:

message: "&aWelcome back, %player%! You have %vault_eco_balance% coins waiting."

Placeholders this plugin provides

Other plugins (scoreboards, GUIs, chat formats, etc.) can pull data from ROF_LoyaltyRewards using these:

Placeholder Returns
%rofloyaltyrewards_offline_time% Formatted time since the player's last session (works for offline players too)
%rofloyaltyrewards_online_time% Formatted time in the player's current online session
%rofloyaltyrewards_eligible_offline% Count of unclaimed offline rewards the player currently qualifies for
%rofloyaltyrewards_eligible_online% Count of online rewards the player currently qualifies for
%rofloyaltyrewards_next_offline% ID of the next unclaimed offline reward
%rofloyaltyrewards_next_offline_time% Time requirement of that next reward

Example: &7Next reward: &f%rofloyaltyrewards_next_offline% &7in &f%rofloyaltyrewards_next_offline_time%

Clone this wiki locally