A Hytale server plugin template using the Fairy framework.
- Java 21 or higher
- Hytale Server (will be downloaded automatically)
- Valid Hytale credentials for authenticated mode
./gradlew shadowJarThe compiled plugin JAR will be in build/libs/.
./gradlew runHytaleServerThis will:
- Download and prepare the Hytale server
- Generate necessary manifest files
- Start the server with your plugin loaded
Edit gradle.properties to customize:
group- Your project's group IDname- Plugin nameversion- Plugin versionpackage- Main package for your classes
Edit build.gradle.kts to configure the server runner:
bindAddress- Server bind address (default: 127.0.0.1:7777)authMode- Authentication mode: authenticated, unauthenticated, or mixedallowOp- Allow OP commandsdisableSentry- Disable Sentry error reporting
src/main/java/org/example/template/
HytaleTemplatePlugin.java # Main plugin class
src/main/resources/
Common/UI/Custom/ # Custom UI files (.ui)
Add Fairy modules in build.gradle.kts:
dependencies {
api("io.fairyproject:hytale-command")
api("io.fairyproject:core-config")
// Add more modules as needed
}