Skip to content

CoderJSLoader

Choose a tag to compare

@firesmasher-c6 firesmasher-c6 released this 14 Jun 08:14
· 1 commit to CoderJSLoader-1.0.0 since this release
6763043

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 .js Extension 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), and sender (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.yml layout to safely load alongside Coder on modern OpenJDK 21 to 25 container nodes.

🛠️ Installation

  1. Drop the compiled CoderJSLoader-1.0.0.jar directly into your server's primary /plugins/ folder.
  2. Restart your server container.
  3. 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