JSEngineNK

Experimental JSEngineNK 1.14.1

Update Nashorn Fetch API library link
Sorry I uploaded the wrong JSEngineNK Java11-22
  • Like
Reactions: DimBoy
Fix JSEngineNK Java11-22 error
Fixed Windows error not loading any script
Added the possibility of sending arguments to tasks
Added async tasks
For Java programmers:
Added the possibility to get the engine with the function in the main with getEngine() and call() To call functions from java
Bug fixes and optimization improvements
Now the versions for Java8-11 and Java11-20 were updated (in java11 I recommend using the Java11-20 version)
Added readfully() function to read text files example usage:
JavaScript:
var test = readFully("absolutePath/archive.txt"); //use the absolute Path of the file!
New Polyfills added!
Fixed permission bug for the /scripts command where the command would be seen in players' command list even if they did not have the permission
Arrangement of the last parameter of the given command function (the Command.this class)
The interface was improved a little when starting the plugin
Added an argument to commands after Label that returns the command class of the command
Added a jar for Java15 version and higher!
(Use the corresponding jar with your version of java!)
Fixed the error that code errors did not appear in the Enable event
Fixed bug in Navigator API
Fetch API updated!
Info: https://github.com/Trollhunters501/Fetch-API-Nashorn/releases/tag/1.2
Fixed bug for some entity events
Top