From 368b2b7c2b8716266695cc76d79190eef5cc6619 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 23 Aug 2018 13:49:18 +1000 Subject: [PATCH] Updated JavaScript API (markdown) --- JavaScript-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JavaScript-API.md b/JavaScript-API.md index 1c20d9d..1e6616a 100644 --- a/JavaScript-API.md +++ b/JavaScript-API.md @@ -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//`