CoderTS 1.1.0

TypeScript support for your Minecraft server via Coder

Latest TypeScript
Download
Download Addon

Download the latest CoderTS jar for your server.

Download .jar
View Repository

View the repository of this addon on GitHub.

View Repo
System Requirements
  • Server: Paper 1.21.x
  • Coder Plugin: v2.3.3 or newer
  • tsc.js: TypeScript compiler bundled in jar (see Setup)
Note: CoderTS intercepts /coder run *.ts before Coder handles it — fully transparent to existing setups.
Features
  • TypeScript Execution: Run .ts files directly with /coder run <file.ts>
  • Transpilation: Converts TypeScript → ES5 via the bundled TypeScript compiler running inside Mozilla Rhino
  • Async Transpilation: Transpilation runs off the server thread so performance is never blocked
  • Script Globals: Exposes server, plugin, sender, Bukkit, CoderAPI, and print() in every script
  • Transparent Integration: Intercepts /coder run *.ts before Coder handles it — no extra commands needed
Available Script Globals
Global Type Description
senderCommandSenderWho ran the command
serverServerBukkit server instance
pluginJavaPluginCoderTS plugin instance
BukkitBukkitStatic Bukkit class
CoderAPICoderAPICoder plugin API
print(msg)functionSend message to sender
Setup & Quick Start
1. Get tsc.js
npm pack typescript@4.9.5

Extract the .tgz, find package/lib/typescript.js, rename it to tsc.js and place it at:

src/main/resources/tsc.js
2. Build & Install
mvn package

Drop the output jar from target/ into your server's plugins/ folder alongside Coder.

3. Write & Run a Script

Place .ts files in plugins/Coder/scripts/ and run:

/coder run myscript.ts
Example Script
const playerName: string = sender.getName();
const online: number = server.getOnlinePlayers().size();
print("Hello, " + playerName + "!");
print("Players online: " + online);
Release Info
Version

1.1.0

Publisher

itzMeFisherman

Status

Active

Built for

Coder v2.3.3+

License

MIT


Features
  • TypeScript Support
  • TS → ES5 Transpilation
  • Async Transpilation
  • Mozilla Rhino Engine
  • Bukkit API Access
  • Script Globals
  • Transparent Integration