1.21 support: the libraries have once again been updated, so the share-button and hover text are working again on all Minecraft versions between 1.16.5 and 1.21.1!
1.20.4 support: I updated some libraries again to fix the share-button not working on the latest Minecraft version. PlayerStats now works fully on all versions between 1.16.5 and 1.20.4!
1.20.2 support: I updated some libraries to fix the share-button not working on 1.20.2. PlayerStats now works fully on all versions between 1.16.5 and 1.20.2!
Excluded players won't show up in /top or /server statistics
Whether you want to allow /player lookups for them can be changed in the config
Players can be excluded by manually adding their UUID to the new excluded_players file, or through the new command:
/statexclude with permission playerstats.exclude
(only OP players can use this command without the above permission)
Use /statexclude info for a more detailed explanation
Added Halloween theme (active in October), winter theme (active in December), and secret fire theme (only active on my birthday)
Bug-fixes:
Displayname for "deaths"
Commands are now working properly when the locale of the server is not English
All stat-name translations are now being handled by the language.yml file if translate-to-client-language is set to false in the config
Internal improvements
Cleaned up code
Separated the API into its own package and created a core package, to make updating easier in the future
Note for Placeholder Users If you're using placeholders, you'll need to update the PlayerStatsExpansion as well. It might take a few days before my upload to the papi ecloud is verified, but until then you can download v2.0.0 manually here.
Placeholder support! Placeholders are added in the separate PlayerStatsExpansion, which can be downloaded from the expansion's GitHub, through the PlaceholderAPI eCloud, or in-game with /papi ecloud download PlayerStats.
On the GitHub page, you'll also find a full list of the available placeholders and a usage description.
In general, the expansion follows the PlayerStats config settings, except for a few values that can be customized through the PlaceholderAPI config file.
Added a new language file that can be used to customize the displayed statistic-names (if the automatic-translating feature is disabled)
PlayerStats now has its very own API! It's hosted on the snapshot repository of Maven Central, and includes sources and documentation.
Statistic sharing! Statistics can now be shared in chat by clicking a "share" button.
This feature comes with several configurable options:
The option to disable sharing entirely
A new permission to (dis)allow sharing (playerstats.share is set to true by default)
A cooldown for players (amount of time they have to wait before sharing again, default on 0)
Formatting options for:
Color
Style
Using empty lines before chat messages
Support for Minecraft 1.16.5 and 1.17.1! (PlayerStats now supports all versions between 1.16.5 and 1.19)
Some tab-complete improvements:
break_item now only shows items that have durability (and thus can break)
kill_entity and entity_killed_by now only show entites that are alive (including armor stands, which are indeed alive, as I have learned)
Limited stat-lookups to one at a time per player (to prevent too much server stress if a look-up takes a while). This feature can be disabled in the config.
Readable statistics! All time-, distance-, and damage-based statistics are now automatically formatted into a more readable unit.
These statistics all come with hover-text that can display more information
The range of units to display can be changed in the config, and is currently:
Time (previously ticks): automatically switches between days + hours and hours + minutes based on the size of the to-display number(s) (and hours + minutes + seconds is shown in hover-text)
Distance (previously cm): Blocks (and km for hover-text)
Damage (previously 0.5 hearts): Hearts (and 0.5 hearts for hover-text)
The hover-text color automatically adjusts based on the color of the statistic number, and can be made lighter or darker in the config
All statistics are now automatically translated in the client's language! The translation is provided by the Minecraft language files and happens automatically for every receiving player. To get the default English text for everyone, disable this setting in the config. Example:
Improved formatting: numbers are separated by commas
The default color scheme has been minorly adjusted
You can now enable the rainbow theme outside of pride month as well
Added debugging feature to get more output in console when necessary
Improved loading-times drastically when exclude-banned-players is enabled
Never late than never: pride decorations! PlayerStats will now automatically apply festive decorations based on specific dates. This setting can be disabled in the config.
Config improvements: from now on, your config file will automatically update whenever you use a new version of PlayerStats, while keeping all your settings intact.
Performance: PlayerStats is now on average 8x faster
New feature: check the total of a statistic for everyone on your server combined! As with the other statistics, you can configure all colors and styles, and for this one you can change the message to include your own server name as well!
1.19support: everything seems to work on Spigot 1.19, except for the hover-text in the usage explanation. I have to wait for the Adventure library to update, but in the mean time there is now a full usage explanation without hovering text