Updated JavaScript API (markdown)

Jesse Boyd 2018-08-23 13:49:18 +10:00
parent a18e60c303
commit 368b2b7c2b

@ -6,7 +6,7 @@
- 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`)
- 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
Create a new `.js` file in `commands/`, or `commands/<alias>/`