From 431400f2f48b449a914965b8401c1b26fae1cb7f Mon Sep 17 00:00:00 2001 From: BlitzGamer-88 <52609756+BlitzGamer-88@users.noreply.github.com> Date: Tue, 11 Aug 2020 14:08:42 +0300 Subject: [PATCH] Updated Advanced Scripts (markdown) --- Advanced-Scripts.md | 5 +++++ 1 file changed, 5 insertions(+) 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.