COWMODSКаталог модов
PaperTS

ВЕРСИИ (6)

release

PaperTS 1.6.0

1.6.0
16 янв. 2026 г.95Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11bukkit, folia, paper, purpur, spigot
Скачать
Что нового
**:rocket: PaperTS 1.6.0 Released** In this new release we included the **Java Bridge API**, a new interface that bridges the gap between TypeScript and the underlying Java Virtual Machine. It was a contribution from @sirio_03 . **:tools: Setup & Type Definitions** To use the Java Bridge with full TypeScript support, create a javaBridge.ts file in your project and add the following type declarations: ```ts declare const Java: { /** * Get an enum value by class name and value name. */ enumValue<T = unknown>(className: string, valueName: string): T; /** * Get all values of an enum. */ enumValues<T = unknown>(className: string): T[]; /** * Create a new instance of a Java class. */ newInstance<T = unknown>(className: string, ...args: unknown[]): T; /** * Call a static method on a Java class. */ callStatic<T = unknown>( className: string, methodName: string, ...args: unknown[] ): T; /** * Get a static field value from a Java class. */ getStatic<T = unknown>(className: string, fieldName: string): T; /** * Check if a Java class exists. */ classExists(className: string): boolean; }; ``` **:bulb: Usage Examples** **1. Managing Enums** Access any Bukkit enum without needing a wrapper. ```ts const gameModes = Java.enumValues("org.bukkit.GameMode"); player.sendMessage(`Available modes: ${gameModes.join(", ")}`); ``` **2. Instantiating Java Classes** Perfect for creating objects like Location. ```ts // Create a new Location const world = Java.callStatic("org.bukkit.Bukkit", "getWorld", "world"); const location = Java.newInstance("org.bukkit.Location", world, 100, 64, 100); player.teleport(location); ``` **3. Static Methods & Fields** Interact with the Server constants directly. ```ts // Call a static method Java.callStatic("org.bukkit.Bukkit", "broadcastMessage", "Hello from PaperTS!"); const onlinePlayer: any[] = Java.callStatic( "org.bukkit.Bukkit", "getOnlinePlayers" ); onlinePlayer.forEach((player) => player.sendMessage("Hi everyone")); // Get a static constant const legacyPrefix = Java.getStatic("org.bukkit.Material", "LEGACY_PREFIX");; player.sendMessage(legacyPrefix); ``` **4. Conditional Integration** Check if a plugin (like Vault or WorldEdit) is installed before attempting to use it. ```ts // Check if a class exists before using it if (Java.classExists("com.example.CustomPlugin")) { const customValue = Java.callStatic("com.example.CustomPlugin", "getValue"); player.sendMessage(`Custom plugin value: ${customValue}`); } else { player.sendMessage("Custom plugin not found"); } // Useful for optional integrations const hasVault = Java.classExists("net.milkbowl.vault.economy.Economy"); if (hasVault) { // Initialize Vault integration } ```
release

PaperTS 1.5.0

1.5.0
4 янв. 2026 г.21Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- Added `runType` for setting the method of running the script in `package.json` - Added a way to cleanup resources before script exiting
release

PaperTS 1.3.0

1.3.0
7 нояб. 2025 г.31Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- Update Javet to 5.0.1 (Node.JS is now at `v24.10.0`) - Added a method in the PaperTS globals to create a callable from a JS function - Added a method to get the the JavaPlugin
release

PaperTS 1.2.0

1.2.0
25 июл. 2025 г.35Minecraft: 1.20, 1.21bukkit, paper, purpur, spigot
Скачать
Что нового
- Decrease JAR size, it nows downloads Node.JS Engine at runtime - Include method for setting and getting data from persistent data container
release

PaperTS 1.1.3

1.1.3
25 июл. 2025 г.44Minecraft: 1.20, 1.21bukkit, paper, purpur, spigot
Скачать
Что нового
- Improve load and unload of modules - Improve information about registering events and commands
release

PaperTS 1.1.2

1.1.2
22 июл. 2025 г.53Minecraft: 1.20, 1.21paper
Скачать