You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
[](https://github.com/astorks/ScriptableMC-Engine/releases/latest)
@@ -15,32 +16,46 @@ Most linux servers already use OpenJDK, however if you're running windows or wan
15
16
16
17
GraalVM-CE is a free open source java runtime created by Oracle that is pre-packaged with the GraalJS Engine allowing all javascript engine features including AOT compilation of javascript.
17
18
18
-
## Installing The Plugin
19
-
- Ensure your server is running OpenJDK 8+ or GraalVM
20
-
-[Download the latest ScriptableMC plugin](https://github.com/astorks/ScriptableMC-Engine/releases/latest) and place it in your plugins folder.
21
-
- Take a look at [ScriptableMC-TypeScript](https://github.com/astorks/ScriptableMC-TypeScript) for a full typescript plugin example.
19
+
## Installing The JavaScript Engine Plugin
20
+
##### If your server is running on a Standard JDK
21
+
- Download the latest [`ScriptableMC-Engine-JS-Bundled.jar`](https://github.com/astorks/ScriptableMC-Engine/releases/latest/download/ScriptableMC-Engine-JS-Bundled.jar) and place it in your plugins folder.
22
+
##### If your server is running on a GraalVM JDK
23
+
- Download the latest [`ScriptableMC-Engine-JS.jar`](https://github.com/astorks/ScriptableMC-Engine/releases/latest/download/ScriptableMC-Engine-JS.jar) and place it in your plugins folder.
24
+
25
+
Take a look at [ScriptableMC-TypeScript](https://github.com/astorks/ScriptableMC-TypeScript) for a full typescript plugin example.
22
26
You can take the typescript example and compile it, then directly modify the javascript if you don't want to use typescript.
|`/scriptablemc reload`|`/smc rl /jsrl`| Fully reloads the script engine and all script files. |`scriptablemc.reload`|
40
+
|`/scriptablemc javascript reload`|`/smc rl /jsrl`| Fully reloads the javascript engine and all script files. |`scriptablemc.js.reload`|
37
41
|`/scriptablemc javascript execute <source>`|`/smc js ex <source>`| Executes javascript source and prints the return value. |`scriptablemc.js.execute`|
38
42
|`/scriptablemc javascript execute stash`|`/smc js ex stash`| Executes javascript source stored in your stash. |`scriptablemc.js.execute`|
39
43
|`/scriptablemc javascript file <filePath>`|`/smc js f <filePath>`| Executes javascript file from the scripts folder. |`scriptablemc.js.execute.file`|
40
44
|`/scriptablemc javascript stash`|`/smc js st`| Prints all stored javascript lines in your stash. |`scriptablemc.js.execute`|
41
45
|`/scriptablemc javascript stash <source>`|`/smc js st <source>`| Adds a line to your javascript stash. |`scriptablemc.js.execute`|
42
46
|`/scriptablemc javascript stash clear`|`/smc js st clear`| Clears your javascript stash. |`scriptablemc.js.execute`|
|`/scriptablemc python reload`|`/smc rl /pyrl`| Fully reloads the python script engine and all script files. |`scriptablemc.python.reload`|
52
+
|`/scriptablemc python execute <source>`|`/smc py ex <source> /pyex`| Executes python source and prints the return value. |`scriptablemc.python.execute`|
53
+
|`/scriptablemc python execute stash`|`/smc py ex stash`| Executes python source stored in your stash. |`scriptablemc.python.execute`|
54
+
|`/scriptablemc python file <filePath>`|`/smc py f <filePath>`| Executes python file from the scripts folder. |`scriptablemc.python.execute.file`|
55
+
|`/scriptablemc python stash`|`/smc py st`| Prints all stored python lines in your stash. |`scriptablemc.python.execute`|
56
+
|`/scriptablemc python stash <source>`|`/smc py st <source>`| Adds a line to your python stash. |`scriptablemc.python.execute`|
57
+
|`/scriptablemc python stash clear`|`/smc py st clear`| Clears your python stash. |`scriptablemc.python.execute`|
0 commit comments