A simple example plugin for Hytale servers demonstrating the basics of plugin development.
📺 Video Tutorial: Watch on YouTube
- Registers a
/hellocommand - Displays a title message to players when executed
- Java 17+
- Hytale Server API (
HytaleServer.jar)
You need the HytaleServer.jar file to compile plugins. There are two ways to obtain it:
After installing the Hytale Launcher, you can find the server files in:
| OS | Path |
|---|---|
| Windows | %appdata%\Hytale\install\release\package\game\latest |
| Linux | $XDG_DATA_HOME/Hytale/install/release/package/game/latest |
| macOS | ~/Application Support/Hytale/install/release/package/game/latest |
Copy HytaleServer.jar from that directory into the libs/ folder of this project.
For production servers, you can use the official Hytale Downloader CLI tool to download the latest server files. This requires OAuth2 authentication.
For more details, see the official Hytale Server Manual.
- Place
HytaleServer.jarin thelibs/directory - Build with Gradle:
./gradlew buildThe compiled plugin JAR will be located at build/libs/HelloPlugin-1.0-SNAPSHOT.jar.
Copy the built JAR file to your Hytale server's plugins/ directory.
In-game, use the command:
/hello
This will display a title message saying "Hello world!" to the player.
src/main/java/com/example/plugin/
├── HelloPlugin.java # Main plugin class
└── HelloCommand.java # Command implementation
This project is licensed under the MIT License - see the LICENSE file for details.