Links
Tags
Creators
Details
1.0
Compatibility
Changes
๐ ๏ธ SWIFTCODE API v1.0.0 - OFFICIAL RELEASE
The SwiftCode API is now officially available! This toolkit is designed to work in perfect harmony with the SwiftCode Engine, allowing developers to write high-performance Java with the simplicity of a scripting language.
๐ KEY FEATURES
- ONE-LINE GUI SYSTEM: Create, manage, and handle click events for menus using a single fluent chain. No more listener boilerplate.
- NATIVE ASYNC WRAPPER: Execute heavy tasks off the main thread with ease using
Swift.async(() -> { ... }). - SMART WEBHOOK INTEGRATION: Send rich Discord embeds and notifications asynchronously with zero external dependencies.
- BUILT-IN DATABASE UTILS: Pre-configured tools for SQL and Supabase connectivity to handle player data instantly.
- MESSAGING SUITE: Simplified methods for Hex colors, Actionbars, Titles, and Sound effects.
๐ DEVELOPMENT EFFICIENCY
| Task | Standard Bukkit API | SwiftCode API |
|---|---|---|
| Open a GUI | 20+ Lines (Listener + Class) | 3 Lines (with Swift API) |
| Discord Webhook | External Library Required | Native (with Swift API) |
| Async Tasks | Complex BukkitRunnable | Simple Lambda Wrapper |
| Hex Colors | Manual Translation | Automatic Support |
๐ฆ HOW TO USE
- Ensure SwiftCode Engine is installed on your server.
- Add
SwiftCodeAPI.jarto your/pluginsfolder. - Import the library in your scripts:
import com.swiftcode.api.*;
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:6erZBFc8:jzwZqfNO"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:6erZBFc8:jzwZqfNO"
}

