mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-09-28 23:17:29 +02:00
Updated JavaScript API (markdown)
parent
a18e60c303
commit
368b2b7c2b
@ -6,7 +6,7 @@
|
|||||||
- JavaScript can be used to register commands, patterns, masks, and brushes
|
- JavaScript can be used to register commands, patterns, masks, and brushes
|
||||||
- Scripts should be placed in `plugins/FastAsyncWorldEdit/commands` (can be configured in the `config.yml`)
|
- Scripts should be placed in `plugins/FastAsyncWorldEdit/commands` (can be configured in the `config.yml`)
|
||||||
- Use `/fawe reload` to reload the scripts.
|
- Use `/fawe reload` to reload the scripts.
|
||||||
- [https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/api.html#CDEDGBIF](Nashorn Tutorial)
|
- [Nashorn Tutorial](https://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/#invoking-javascript-functions-from-java) | [Oracle Nashorn Tutorial](https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/api.html#CDEDGBIF)
|
||||||
|
|
||||||
#### Creating normal commands
|
#### Creating normal commands
|
||||||
Create a new `.js` file in `commands/`, or `commands/<alias>/`
|
Create a new `.js` file in `commands/`, or `commands/<alias>/`
|
||||||
|
Loading…
Reference in New Issue
Block a user