Just noticed a bug in the PlaceholderAPI expansion. It wasn't marked as persistent, so it would be unloaded when PlaceholderAPI was reloaded, breaking the placeholders for it. This is now fixed.
The plugin now supports getting and modifying the statistics of offline players. You have to use their UUID instead of their username in the command to confirm you want to adjust the statistics of someone who is offline because it seems like kind of an unusual thing to do (and also because Bukkit says you should not try to find an offline player by their username).
The plugin now has a configuration option where you can switch to using vanilla statistic names instead of Spigot ones, because the spigot ones don't exactly match the vanilla ones in some cases. Alternatively, I've made a pair of mappings you can reference:
Spigot -> Vanilla mappings Vanilla -> Spigot mappings
This update adds a new command, /runifstat. Usage is simple: to run "/say Good stats, <player>" if they have bred over 100 animals, you'd run "/runifstat <player> ANIMALS_BRED gt 100 say Good stats, %player%"
The command runs from console which means that you should not put a / in front of the command, and that you shouldn't give everyone access to /runifstat (permission: statisticeditor.runifstat).
You can use Java-style operators (<, >, ==, !=) or short Perl-style operators (lt, gt, eq, ne). As demonstrated, you can use %player% in the command to represent the target player's name for convenience.
Last update the /stats command couldn't set stats due to a bug in the logic, this is fixed. Also, you can now add and subtract from stats instead of just setting it. To do this, add a ++ or -- before the value. For example, to subtract 2 from the deaths stat, do:
/stats Player DEATHS --2
Sorry this update was so long in the making, been working more on CMR lately.
/stats <player> <stat> ALL is for if you want to get all values of a player's stat. Values of zero will be ignored, for example you won't find a listing for MINE_BLOCK of type BEDROCK in a survival server generally.