Check a relational PlaceholderAPI value in both directions
Applies to: PlaceholderAPI; match the linked maintainer documentation to your installed platform and release.
Documentation checked .
A relationship expression can produce different output depending on who views whom. Friendship, faction or visibility displays need a deliberate viewer-and-target test rather than a single ordinary player placeholder check.
Prepare the test
Keep the original placeholder text beside the result during diagnosis. The expansion supplies the data; the scoreboard, menu or chat plugin decides where and how to display that result.
Make the change
- Choose two consenting test accounts and write down the relationship you expect each to see. Use a harmless pair with no private staff information, and copy the exact relational expression from its documentation.
- Use the documented
papi parserelcommand with the first player as the viewer and the second as the comparison target. Repeat with the names reversed while keeping the same expression text. - Compare those results with the provider’s own relationship state. If the output differs by direction, determine whether that is expected before changing groups, teams or protection membership.
- Test one display that explicitly supports relational placeholders. Ask both accounts to view each other, and inspect whether the integration supplies both identities rather than parsing a normal single-player string.
Check the result
Both viewers should receive the value their relationship permits, with no leakage of hidden staff or team status. Capture the input order with each result so a later support report does not reverse the evidence.
If the test fails
If direct relational parsing succeeds but the display stays raw, restore the old display text and check that integration’s documented support. Do not replace relational syntax with a guess or grant the viewers elevated permissions to hide the symptom.
A successful ordinary parse does not test the second identity. Keep viewer, target and provider relationship state together in your notes when comparing behaviour after a plugin update.
References and related help
Check the official PlaceholderAPI documentation against your installed release before using a command or setting from another version.
No comments to display
No comments to display