Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
SkJvm
SkJvm lets you write and execute Java directly inside your Skript scripts.
Keep your gameplay logic in Skript and use Java whenever you need more flexibility, reusable code, or access to the Bukkit/Paper API.
Formerly known as SkBee++. This project is independent and is not affiliated with ShaneBee's SkBee.
Features
- Java inside Skript: Write Java code directly under
execute java:. - Reusable
.jvmodules: Keep larger pieces of Java in separate files and run them from your scripts. - Modern Java syntax: Use lambdas, method references,
var, and other Java language features. - Variable Bridge: Exchange values, Lists, arrays, and nested Maps between Java and Skript.
- Skript callbacks: Call Skript sections from Java through
RunnableandConsumer. - Event context: Access the triggering event, command sender, and relevant event values.
- Background compilation: Compile Java asynchronously and reuse unchanged code across script reloads.
- Maven dependencies: Use explicitly approved external libraries with SHA-256 verification.
- Readable errors: Find problems through messages pointing to the original script or module line.
- Debugging tools: Inspect event bindings and recorded variable writes with
/jvdebug.
Java directly inside Skript
command /javahello:
trigger:
execute java:
var words = List.of("Hello", "from", "SkJvm!");
sender.sendMessage(String.join(" ", words));
Java blocks can access event, sender, and context, along with helpers for reading and writing Skript variables.
Reusable Java modules
Call a module from your script:
on join:
run jv "modules/welcome.jv"
Write its Java code in plugins/Skript/scripts/modules/welcome.jv:
Player player = (Player) sender;
player.sendMessage("Welcome back, " + player.getName());
Share data with Skript
setVar("_items::*", List.of("sword", "shield"));
List<?> items = getList("_items");
setVar("profile::*", Map.of(
"name", "Alex",
"stats", Map.of("wins", 12)
));
Use _-prefixed names for event-local variables and unprefixed names for global variables.
Requirements
- Paper — the current build targets Minecraft 26.1.2.
- Skript 2.15.4 — the current API target and minimum intended version.
- Full JDK 25, including the Java compiler module.
- Server-side only: players do not need to install anything.
Bukkit/Spigot and Folia are not supported. Other Minecraft versions and Paper forks require compatibility testing.
Compilation and reloading
Java compiles in the background, and unchanged compiled code remains cached across /sk reload.
Watch the console for compilation errors and readiness messages. If a Java block is still compiling or has failed, the current trigger invocation stops at that block. This also applies to on load.
Security
SkJvm checks generated bytecode and restricts class loading. Direct filesystem/network access is restricted by default through allow-system-io: false, alongside restrictions on reflection, process execution, and JVM shutdown.
SkJvm is intended for trusted scripts, not untrusted code. These restrictions are not a complete sandbox: Bukkit/Paper APIs and approved libraries retain server privileges, and infinite loops or memory exhaustion are not isolated.
Only trusted administrators should be allowed to edit Java-enabled scripts and approve external dependencies.


