mirror of
https://github.com/PlaceholderAPI/Javascript-Expansion.git
synced 2025-05-24 20:02:44 +00:00
Updated Your First Script (markdown)
parent
c21228c358
commit
4f85e1e70f
@ -13,6 +13,7 @@ helloWorld();
|
|||||||
```
|
```
|
||||||
|
|
||||||
As you can see, the scripts return one value.
|
As you can see, the scripts return one value.
|
||||||
|
|
||||||
**NOTE: ** Semicolons (`;`) are not required in JS language. However, this is required with multiple statements stacked in 1 line of script
|
**NOTE: ** Semicolons (`;`) are not required in JS language. However, this is required with multiple statements stacked in 1 line of script
|
||||||
|
|
||||||
## Using Your Script
|
## Using Your Script
|
||||||
@ -25,7 +26,7 @@ Specifying script engine is optional, as it will be defaulted to 'nashorn' if no
|
|||||||
```YAML
|
```YAML
|
||||||
hello_world:
|
hello_world:
|
||||||
file: hello_world.js
|
file: hello_world.js
|
||||||
engine: nashorn #optional, can be deleted
|
engine: nashorn # optional, can be deleted
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, after reloading with JS-Expansion command (`/jsexpansion reload`) or PlaceholderAPI plugin (`/papi reload`), you can use your placeholder!
|
Then, after reloading with JS-Expansion command (`/jsexpansion reload`) or PlaceholderAPI plugin (`/papi reload`), you can use your placeholder!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user