OpenJavascript icon

OpenJavascript -----

#MinecraftPlugin #JavaScriptIntegration #ServerCustomization #BukkitAPI #DynamicScripting #Scripts




Update Log
  • Rewritten the async system for full Folia compatibility
  • Now finally stable on Folia, a major milestone
  • Introduced a new task library: simpler, more intuitive, and fully cross-platform compatible
  • Added support for loading .jar files directly into scripts
  • Upgraded from ECMAScript 5.1 to ECMAScript 6.0
    (Modern JavaScript features are now available in OpenJS)
  • Implemented script security enforcement
  • Completed documentation for all previously half-documented components
  • added new example script that runs a local ai with the new features
We also have a dedicated server now
Need help or want to share your scripts?
Join our Discord for support and discussion

[​IMG]
----------, Jun 29, 2025

  • Fixed Schedules not unregistering on Folia Servers

  • Fixed Plugin breaking if PlaceholderApi is not installed

  • Fixed /oj reload command on Folia servers

  • Added Bstats opt-out option in the configuration file

  • Fixed a few weird errors that only occurred on Folia servers

  • Fixed the no hit cooldown example script causing errors

  • Added 2 new example scripts: hitstand script & Knockback-stick script to the documentation

  • Fixed Bstats silently failing to load on Folia servers
----------, May 28, 2025

OpenJS Update 1.0.6
  • A Wiki for OpenJS has been created. Everything is documented from the ground up, although it is not yet fully complete.

  • Added official PlaceholderAPI support.

  • Introduced a new DiskAPI system for loading and saving files.

  • Added a permission system for custom commands.

  • Fixed an issue where custom commands were not appearing.

  • Fixed scheduling not working correctly.

  • Deprecated getVar and setVar due to a memory leak, in favor of the new DiskAPI.
----------, May 25, 2025

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 command they 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:
  1. setPublicVar(key, value) ➡️ setShared(key, value)
  2. 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
----------, Jan 26, 2025

This update is small, but the next update will be huge!
Change log for 1.0.4:
  • Fixed update checker, it no longer uses cached versions because they have huge update delays
  • Renamed setStoredVar and getStoredVar to loadVar and saveVar
  • simplified statements for the command handler
  • added a version command to easily retrieve the plugin version
----------, Oct 13, 2024

Please leave a rating for my plugin, this is a passion project which means I am investing my free-time into this plugin :giggle:
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
----------, Aug 25, 2024

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 :D
----------, Jun 23, 2024

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 :D
----------, Jun 23, 2024

New update dropped 1.0.1, here is the changelog:
  • Added a new memory storing feature, see Docs under "storing and loading variables from storage"
  • Made a update checking system which can be disabled and enabled in the config
  • Changed file name from openjs.jar to OpenJS.jar because it looks better
  • Huge documentation update
  • Compiler optimizations
  • Scripts that are disabled but no longer exist, will automatically get removed from the disable list
----------, Jun 15, 2024

Resource Information
Author:
----------
Total Downloads: 643
First Release: Jun 14, 2024
Last Update: Jun 29, 2025
Category: ---------------
All-Time Rating:
1 ratings
Find more info at docs-mc-1.gitbook.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings