SwiftCode Engine

SwiftCode Engine

Open source minecraft scripting engine

29 downloads
1 followers

πŸš€ SWIFTCODE: THE FUTURE OF SERVER DEVELOPMENT

SwiftCode is a revolutionary "Runtime Java Engine" that allows you to write, compile, and deploy real Java code directly within your Minecraft serverβ€”without restarting.

It bridges the gap between the simplicity of Skript, the raw power of Native Java, and the speed of modern development.


πŸ”— GET THE API

To start building your own high-performance scripts, you need the official API: πŸ‘‰ Download SwiftCode API on Modrinth


πŸ—οΈ WHY SWIFTCODE ENGINE?

Our engine is designed to be more than just a loader. It's a smart, secure, and automated development environment.

🧠 1. SMART AUTO-IMPORT SYSTEM

Tired of writing 20 lines of import at the top of every file?

  • Automatic Detection: SwiftCode detects the classes you use and imports the necessary Bukkit and SwiftAPI libraries automatically.
  • Write Less, Do More: Focus on your logic, not on managing your imports.

πŸ›‘οΈ 2. SECURITY SANDBOX (SAFE-ZONE)

Run custom code with peace of mind. Our engine features a proactive Security Sandbox.

  • Illegal Action Blocking: Automatically blocks dangerous commands like System.exit(), Runtime.exec(), or malicious ClassLoader manipulations before they even compile.
  • Server Integrity: Your server stays online, no matter what. Malicious or accidental system-level calls are neutralized instantly.

⚑ 3. SMART ERROR DETECTION (HUMAN-READABLE)

No more searching through 1000 lines of console logs for a single error.

  • Real-time Debugging: If your code fails, SwiftCode points to the exact line and explains the problem in Plain English (e.g., "Line 12: You forgot a semicolon!" or "Line 5: Player object cannot be null").
  • Broadcast to Admins: Critical errors are sent directly to in-game chat for authorized administrators.

⚑ THE ULTIMATE COMPARISON

Feature πŸ“œ Skript β˜• Normal Java (Plugin) πŸš€ SwiftCode
Language Custom Syntax Pure Java Pure Java
Imports Manual/Addons Manual (Heavy) Smart Auto-Import
Security Plugin Limits No Limits (Risky) Proactive Sandbox
Error Handling Basic Scaring Stacktraces Human-Readable
Live Reload /sk reload Restart Required Instant /swift reload

πŸ”Œ 100+ SEAMLESS PLUGIN INTEGRATIONS

SwiftCode provides pre-built wrappers for 100+ popular plugins. Stop fighting with complex APIsβ€”use Swift.method().

πŸ† Supported Core Integrations

  • Economy (Vault): Swift.deposit(p, amt), Swift.getMoney(p)
  • Permissions (LuckPerms): Swift.addGroup(p, grp), Swift.addPerm(p, perm)
  • World Management (WE/WG): Swift.weSet(p, mat), Swift.rgDefine(p, name)
  • NPC & Mobs (Citizens/MM): Swift.npcCreate(loc, name), Swift.mmSpawn(mob, loc, lvl)
  • Social (DiscordSRV/Holo): Swift.discordSend(ch, msg), Swift.holoCreate(id, loc, lines...)

πŸ’‘ CODE EXAMPLE: AUTO-IMPORT IN ACTION

Notice how there are no imports and no complex setup. Just pure, safe logic.

public class SecuritySystem implements SharkScript {
    public void execute(Player p) {
        // System.exit(0); // -> This would be BLOCKED by the Engine!
        
        if (Swift.hasPerm(p, "admin.alert")) {
            Swift.msg(p, "<red>Security Sandbox is Active & Safe.");
        }
    }
}