Velocitab/docs/Relational-Placeholders.md
AlexDev_ ace3644111
feat: Add conditional & relational MiniPlaceholders support (#197)
* Added relational mini placeholders support
Fixed some problems
Removed 300ms delay after joining a server
Code refactor

* Updated MiniPlacehodlers dependency
Removed max team length for 1.18+ clients
Fixed problem of backend sending team packets for online players and added a warning message

* Added docs
Added more time/date placeholders

* Added mini condition system

* Fixed problem due to adventure string quoting

* Fixed problem in a rare use case

* Removed debug message

* Fixed conversations
Fixed packet unregistration problem

* Added docs
Fixed a problem

* Added yaml multi-line docs

* Changed docs

* Added papi support for conditions

* Cone clenaup

* Fixed placeholders in conditions

* Fixed conversations

* Fixed problems

* Fixed problems while using minedown or legacy
Added check for team packets tracker

* Fixed problems
Added support for hex colors in legacy formatter

* Fixed problems

* Fixed problem with header & footer

* Resolved conversations
2024-06-29 13:32:29 +01:00

2.5 KiB

In order to use these placeholders, install MiniPlaceholders on your Velocity proxy, set the formatter_type to MINIMESSAGE and ensure enable_miniplaceholders_hook is set to true

In all examples target is the one that sees the message, and the audience is the one that is being seen.

Example: My username is William278 and I can see in tablist an audience player named Player1.

Table of Placeholders

Placeholder Description Example Usage
<velocitab_rel_who-is-seeing> Displays the username of the target player, used for debug William278
<velocitab_rel_perm:(permission):(value)> Checks if the target player has a specific permission and, if true parse value with the audience player's name. See below
<velocitab_rel_vanish> Checks if the audience player can see the target player, considering the vanish status. true

Examples of <velocitab_rel_perm:(permission):(value)> Placeholder

Note: In the value, you can Velocitab placeholders or MiniPlaceholders

Placeholder Example Usage Description Output Example
<velocitab_rel_perm:check.server:Target is on %server%!> Checks if the target player has the permission 'check.server' and displays the server of the audience player. Target is on survival!
<velocitab_rel_perm:clientcheck:<player_client>> Checks if the target player has the permission 'clientcheck' and displays the client of the audience player. LunarClient
<velocitab_rel_perm:pingcheck:<player_ping>> Checks if the target player has the permission 'pingcheck' and displays the ping of the audience player. 23