A Hytale server plugin that submits server data to HytaleTrack for display on player and server profiles.
- Real-time server status - Automatically reports player count every 30 seconds
- Player session tracking - Tracks when players join your server
- Seamless integration - Works with your existing HytaleTrack server profile
- Async submissions - Non-blocking HTTP requests that won't lag your server
- A Hytale server running HytaleServer 1.0+
- A verified server on HytaleTrack
- Java 21 or higher (for virtual threads)
- Download the latest release from the Releases page
- Place the JAR file in your server's
plugins/directory - Configure the plugin with your API key (see Configuration below)
- Restart your server
- Log in to HytaleTrack
- Go to Account → My Servers
- Select your verified server
- Click Enable Plugin Integration
- Copy the API key immediately - it will only be shown once!
Add the API key to your server's environment:
export HYTALETRACK_API_KEY="htk_your_api_key_here"Or add it to your server startup script before launching the server.
If you're running a self-hosted HytaleTrack instance:
export HYTALETRACK_API_URL="https://your-instance.com/api/server-plugin/submit"| Data Type | When | What |
|---|---|---|
| Status | Every 30 seconds | Player count, online status |
| Player Join | When a player joins | Player UUID and username |
| Player Leave | When tracked (see below) | Player UUID and username |
Due to HytaleServer API limitations, player disconnect events may require manual integration. You can call the plugin's public method from your own code:
HytaleTrackServerPlugin plugin = /* get plugin instance */;
plugin.onPlayerLeave(playerUuid);
// or
plugin.onPlayerLeave(playerName);# Clone the repository
git clone https://github.com/BlockhostOfficial/hytaletrack-server-plugin.git
cd hytaletrack-server-plugin
# Build with Gradle
./gradlew build
# The JAR will be in build/libs/Make sure you've exported the environment variable before starting the server:
export HYTALETRACK_API_KEY="htk_..."
java -jar server.jarAPI keys should start with htk_. Make sure you copied the full key from HytaleTrack.
- Check that your server is verified on HytaleTrack
- Check that plugin integration is enabled in My Servers
- Try regenerating the API key
- Check the server console for
[HytaleTrack]messages - Verify the API key is correct
- Make sure your server can reach
hytaletrack.com
This plugin communicates with the HytaleTrack API:
POST https://hytaletrack.com/api/server-plugin/submit
Header: X-Api-Key: htk_...
Content-Type: application/json
// Status update
{"type": "status", "data": {"playerCount": 5, "isOnline": true}}
// Player join
{"type": "player_join", "data": {"playerUuid": "uuid", "playerName": "name"}}
// Player leave
{"type": "player_leave", "data": {"playerUuid": "uuid", "playerName": "name"}}
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- HytaleTrack - The main HytaleTrack website
- My Servers - Manage your servers and get API keys
- Issues - Report bugs or request features