JSEngineNK

JSEngineNK 1.14.1

Trollhunters501

Active Member
Trollhunters501 updated JSEngineNK with a new update entry:

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...
Read the rest of this update entry...
 

Trollhunters501

Active Member
How i can use Fake Inventories API in JSEngineNK
You can get its main instance with
JavaScript:
manager.getPlugin("name");
and its classes with Nnclassloader API
Nnclassloader example:
JavaScript:
let pluginClasses = new NnClassLoader({ jars: [ manager.getPlugin("name").getClass().getProtectionDomain().getCodeSource().getLocation().getPath() ] });
Obviously replace name with the name of the plugin
 
Top