From c50a1a9e1090daa96912b9c9bd48eaf661daf105 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Thu, 23 Jan 2025 22:54:39 +0000 Subject: [PATCH] docs: add info about the conditions tag --- docs/portal-tags.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/portal-tags.md b/docs/portal-tags.md index 5a404cfd..4e9f8408 100644 --- a/docs/portal-tags.md +++ b/docs/portal-tags.md @@ -100,3 +100,15 @@ You can only use one of these at the start of a command tag. `#` Execute command as console `%` Send command to the proxy (requires the proxy plugin to be installed) + +### `conditions:(comparison)` + +For this tag you must have the [placeholder api](https://www.spigotmc.org/resources/placeholderapi.6245/) installed. + +Example: `conditions:%player_food_level%>=5` + +There are three kinds of comparisons that can be made: boolean, string and numeric. + +If both sides are numeric, then you can use the following operators: `==`, `<`, `>`, `<=`, `>=`. Otherwise, an equal comparison will be made to check if both sides are the same. + +You can find a list of placeholders [here](https://wiki.placeholderapi.com/users/placeholder-list/). However, some plugins may add their own custom placeholders, so that may not be all of them.