TypeScript support for your Minecraft server via Coder
/coder run *.ts before Coder handles it — fully transparent to existing setups.
.ts files directly with /coder run <file.ts>server, plugin, sender, Bukkit, CoderAPI, and print() in every script/coder run *.ts before Coder handles it — no extra commands needed| Global | Type | Description |
|---|---|---|
sender | CommandSender | Who ran the command |
server | Server | Bukkit server instance |
plugin | JavaPlugin | CoderTS plugin instance |
Bukkit | Bukkit | Static Bukkit class |
CoderAPI | CoderAPI | Coder plugin API |
print(msg) | function | Send message to sender |
tsc.jsnpm 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
mvn package
Drop the output jar from target/ into your server's plugins/ folder alongside Coder.
Place .ts files in plugins/Coder/scripts/ and run:
/coder run myscript.ts
const playerName: string = sender.getName();
const online: number = server.getOnlinePlayers().size();
print("Hello, " + playerName + "!");
print("Players online: " + online);
1.1.0
itzMeFisherman
Active
Coder v2.3.3+
MIT