2.0.3
Improved placeholder hooks that contain a cache for placeholder values. Now players who log out are automatically cleared from the cache
Fixed McMMO & PlayerPoints placeholderHooks throwing exceptions when initialized, other miscellaneous bugfixes.
Added the following placeholders:
Memory
Code (Text):
Memory placeholders
%memory_used%
%memory_free%
%memory_total%
%memory_max%
Sound
Code (Text):
Player sound placeholders
Play a sound to the player the placeholder values are being parsed for
%playersound_<sound>-<volume>-<pitch>%
%playersound_ORB_PICKUP-1-2%
Global sound placeholders
Play a sound to all players on the server when this placeholder is parsed
%globalsound_<sound>-<volume>-<pitch>%
%globalsound_ORB_PICKUP-1-2%
Sound names can be found here:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
SellAll
Code (Text):
%sellall_multiplier%
%sellall_multitime%
MySQLTokens
Code (Text):
%mysqltokens_tokens%
TokenManager
This plugin does not cache results and performs mysql lookups to obtain the player token balance every time the getTokens method is called. Because this could affect performance I have implemented a cache which obtains balance for every player who has requested a value for this placeholder every 30 seconds. This fetch task is async and should make obtaining the token balance pretty efficient although the balance could not be accurate up to 30 seconds.
Code (Text):
%tokenmanager_tokens%