CoderJSLoader
·
1 commit
to CoderJSLoader-1.0.0
since this release
CoderJSLoader v1.0.0 🚀
An ultra-lightweight, high-performance extension for Coder v1.3.6 that natively brings JavaScript (.js) script execution straight into your server workspace!
This addon completely bypasses legacy remapping barriers and implements a surgical reflection proxy wrapper to unmask and support the .js extension inside Coder's core /coder run command pipeline—completely free of Mojang remapper corruption or Error T10 security bans.
🌟 Key Features
- Native
.jsExtension Parsing: No weird workarounds or file masking. Natively run scripts via/coder run script.js. - Pre-Baked API Injections: Automatically maps
bukkit(Server instance),api(Coder API handle), andsender(Command Executor) straight into your JavaScript file scope. - Ultra-Lightweight Footprint: Shaded with the highly optimized Mozilla Rhino JSR-223 runtime environment (~1.37MB JAR total) that runs exceptionally gentle on host RAM.
- Modern Paper 1.21+ Optimized: Completely utilizes the
paper-plugin.ymllayout to safely load alongside Coder on modern OpenJDK 21 to 25 container nodes.
🛠️ Installation
- Drop the compiled
CoderJSLoader-1.0.0.jardirectly into your server's primary/plugins/folder. - Restart your server container.
- Verify that your startup log echoes:
[JS Reflection] SUCCESS! Surgically modified Coder's executor to support .js extension.
📖 Quick Start Script (test.js)
Place your script files inside your unified Coder folder: /plugins/Coder/scripts/ ending with a .js extension.
// Use raw section symbols for clean color formatting parameters
var prefix = "§e§l[JS Engine] §f";
// Broadcast to your game chat natively using the pre-baked 'bukkit' handle
bukkit.broadcastMessage(prefix + "JavaScript is executing natively on OpenJDK 25! 🚀");
// Log text directly straight to your Pterodactyl console log dashboard
api.log("[JS Addon] Script tasks executed successfully.");To Execute In-Game or via Console:
/coder run test.js