PlaceholderAPIFormatter
1.0-SNAPSHOT fix2Format existing placeholders provided by other PlaceholderAPI compatible plugins!
Ever use a placeholder provided from another PlaceholderAPI compatible plugin that doesn't quite have the number formatting you want?
To my knowledge, no other solution lets you format another existing placeholder like this.
This plugin lets you configure custom placeholders in a config that looks like this:
formats:
- 'format1:#.##'
- 'format2:#,###'
- 'format3:#,###.##'
The format is '<format_name>:<DecimalFormat>'
Which can then be used in a PlaceholderAPI placeholder as the following:
%papiformatter_<format_name>_<placeholder_to_format>%
For example if I wanted to format the %vault_eco_balance% placeholder, I would use this placeholder to use my format1 format:
%papiformatter_format1_vault_eco_balance%
Hopefully this is clear enough, this was made in like 20 minutes to solve an interesting problem a friend had!
Check out this article for more information on how to use DecimalFormat: https://jenkov.com/tutorials/java-internationalization/decimalformat.html
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta