mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-20 06:11:44 +01:00
docs: add info about the conditions tag
This commit is contained in:
parent
fedd276793
commit
c50a1a9e10
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user