MicroClazz
PluginMIT

MicroClazz

Instantly compile and load Java classes with in-game commands.

11
Downloads
1
Followers
6 months ago
Updated
📦
1
Versions

📖About MicroClazz

MicroClass adds in-game commands for compiling and loading java class on fly.

/microclazz load <filePath>
  • Load a class from a .class or .java file.

    Tip: There are example Java scripts you can try yourself to see how it works!
/microclazz unload <filePath>
  • Unload a previously loaded class.
/microclazz invoke <filePath> <method>
  • Invoke a method from a loaded class.
/microclazz list
  • List all currently loaded classes.

There's examples java you can try yourself.

Script Lifecycle

  • onScriptLoad() – Called when a script is successfully loaded
  • onScriptUnLoad() – Called when a script is unloaded

These hooks let scripts initialize or clean up resources dynamically.