Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
The plugin is feature complete, but I will keep updating it, if you experience any issues or bugs feel free to join my** Discord Server and choose the role "minecraft player"
- You can also try unreleased "Nightly" builds from the source code page
- they most of the time contain wip stuff and are highly experiential (very prior to bugs)
The plugin is compatible with any Java version above 17 & Java 17. The plugin is also compatible with Folia, but with slight limitations due to how Folia works
OpenJavaScript is a powerful Minecraft plugin designed to integrate JavaScript scripting into your Minecraft server. This plugin allows server administrators and developers to write and execute JavaScript code directly, enabling dynamic and customizable server behaviors without needing to recompile or restart the server.
With OpenJavaScript, you can basically make your own plugin for your server quickly, however there are a few limitations which you need to consider:
- The scripts need to be written in JavaScript and not in Java
- You can listen to Events and cancel them, however its a bit different than in Java (I'd recommend to take a look at the documentation
- It is possible that when reloading the plugin too often, memory leaks can develop but this is unconfirmed
Its basically Skript but in JavaScript
Scripts:
To create a script/javascript file you simply go inside the plugins script folder (plugins/OpenJS/scripts), then make a js file, example "file.js" and put it there, then start coding (I recommend using Notepad++) and make any script you want. Also make sure that your script is loaded and enabled, if you don't know how to check that then take a look at the commands.
Features:
- JavaScript Integration: Write and run JavaScript scripts to control various server functions.
- Performance: Each script, including the plugin is Multithreaded, however, most of the performance rely on the scripts
- Custom Event Handling: Register and handle Minecraft events using JavaScript, enabling custom responses to in-game actions.
- Custom Scheduling: Create your own scheduled or delayed function, the possibilities are endless.
- Ease of Use: Simple setup and straightforward API make it easy for both beginners and advanced users to create custom scripts.