Version 1.0.5 has been released! And the update contains huge changes and additions:
Folia support (Experiential): This will open up so many possibilities for developers to create anything they want! With the plugin being multithreaded like Folia, it'll be as Lightweight as possible
Custom commands! Scripts can now create any custom commandthey want, with Tab-Completion support
New java to javascript helper functions: toArray & toJavaList (Needed for custom commands)
No longer relying on JSEngine, great library but I figured out how to use Nashorn natively (scripts initialize much faster now)
deprecated functions have been fully removed these include:
setPublicVar(key, value)➡️ setShared(key, value)
getPublicVar(key) ➡️ getShared(key)
The plugin no longer supports any Java version below 17
This update has been made with sweat, tears and love please report any bug in pm's or my discord server
Please leave a rating for my plugin, this is a passion project which means I am investing my free-time into this plugin Version 1.0.3:
-
Fixed VariableStorage, you can now store dynamic javascript types that don't exist in Java natively! - Errors and warns can now broadcast to operators (can be configured)
- entire plugin got reconstructed for more readability
-
FeatureFlags system! Take a look at the
Documentation for more information!
-
LoadScript and
UnloadScript and
waitForScript function!
- CUSTOM EVENTS: ScriptLoadedEvent and ScriptUnloadedEvent events
You can now share variables between multiple scripts without having to store them in the storage buffer, it will read and write variables and functions from the ram (like every other variable, except that they are shared between every script)
To make a variable public, you need to use the function "setPublicVar(Key, Variable)", here is an example:
Code (Javascript):
setPublicVar
("testVar","Hello world!")
To read a public variable from any script do the following:
Code (Javascript):
getPublicVar
("testVar")
It'll return the variable "Hello world!"
You can also store functions, lists, classes and much more! Make sure to take a look at the Documentation to learn more about it.
Please leave a review, it took me a lot of time making this plugin
You can now share variables between multiple scripts without having to store them in the storage buffer, it will read and write variables and functions from the ram (like every other variable, except that they are shared between every script)
To make a variable public, you need to use the function "setPublicVar(Key, Variable)", here is an example:
Code (Javascript):
setPublicVar
("testVar","Hello world!")
To read a public variable from any script do the following:
Code (Javascript):
getPublicVar
("testVar")
It'll return the variable "Hello world!"
You can also store functions, lists, classes and much more! Make sure to take a look at the Documentation to learn more about it.
Please leave a review, it took me a lot of time making this plugin