Skip to content

Feature: Statistic placeholder#57

Merged
4drian3d merged 7 commits intoMiniPlaceholders:mainfrom
fabianmakila:feat/statistic
Aug 21, 2025
Merged

Feature: Statistic placeholder#57
4drian3d merged 7 commits intoMiniPlaceholders:mainfrom
fabianmakila:feat/statistic

Conversation

@fabianmakila
Copy link
Contributor

This PR adds a player statistic placeholder for Paper. Also updated the Paper maven repository URL to fix build.

The format for the placeholder is <player_statistic:<name>:[parameter]> where <name> is the Statistic Enum constant and parameter is an optional material/entity for those statistics that require one.

Statistic.Type is used to determine whether the statistic requires an additional parameter.

Example usages:

<player_statistic:jump>
<player_statistic:mine_block:stone>
<player_statistic:entity_killed_by:zombie>

Tested on:

  • Paper 1.21.4 (b128)

@4drian3d
Copy link
Member

Sorry for only seeing this pull request after updating the expansion, but could you update it to the new version? 😅

@fabianmakila
Copy link
Contributor Author

Should be up to date now!

@fabianmakila
Copy link
Contributor Author

Also moved the Statistic resolver into its own class similarly to what you had done with the NameResolver. So the main class is now much cleaner.

@4drian3d 4drian3d merged commit eb74f5d into MiniPlaceholders:main Aug 21, 2025
1 check passed
@fabianmakila fabianmakila deleted the feat/statistic branch September 29, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants