Repository navigation
Changelog
- Added placeholder logic testing to custom placeholders
- Can test the value of other placeholders, and only set the value of the custom placeholder if it passes
- Allows you to change the chat formatting based on other PAPI placeholders
- You can check if things are equal to, not equal to, greater than, less than, etc
- Added support for 1.19+
Example
Example of placeholder logic checking in customplaceholders.yml
name:
independentTextComponent: true
normal:
priority: 1
value: '%player_name%'
useGroupEvents: true
nickname:
priority: 2
value: '%player_displayname%'
useGroupEvents: true
logic:
placeholder: '%player_displayname%'
value: '%player_name%'
operation: not
hoverText: |-
&7IGN: &r%player_name%
&7Change your own name with &e/nickThis makes it so you can see someones original IGN when you hover over their name, but only if they have a nickname set