mirror of
https://github.com/PlaceholderAPI/Javascript-Expansion.git
synced 2025-05-23 18:42:44 +00:00
Updated Advanced Scripts (markdown)
parent
2d3616fdf5
commit
431400f2f4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user