diff --git a/Advanced-Scripts.md b/Advanced-Scripts.md index 33707e2..817fcab 100644 --- a/Advanced-Scripts.md +++ b/Advanced-Scripts.md @@ -31,6 +31,11 @@ Examples (assuming the identifier is called _randomintbetween_): - `%javascript_randomintbetween_5,100%` would return a random integer between 5 and 100. - `%javascript_randomintbetween_200,5000%` would return a random integer between 200 and 5000. +Placeholders could also be used as arguments. Instead of using %placeholder% you'll have to use {placeholder}. + +Example (assuming the identifier is called _check_): +- `%javascript_check_{vault_rank}%` would check if the player has the a specific rank and would return something based on their rank. + ## Player Information When a placeholder script is called, the player that is passed to the Javascript-Expansion is also passed to the placeholder script. This player can be accessed with `BukkitPlayer`. After receiving, you can access all of the [player methods](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html) included in the Spigot API.