Skip to content

johnoclockdk/Hytale-Server-Installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

56 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‰ Hytale Server Installer

One-command automated installer for Hytale Dedicated Server

Simple, fast, and fully automated setup with authentication persistence and tmux console access.

โš ๏ธ Unofficial tool - not affiliated with Hypixel Studios


๐Ÿš€ Quick Install

wget https://raw.githubusercontent.com/johnoclockdk/Hytale-Server-Installer/main/Hytale-Server && chmod +x Hytale-Server && ./Hytale-Server install

That's it! Visit the authentication URL when prompted.


๐Ÿ“‹ Commands

Command Description
./Hytale-Server install Install Hytale server
./Hytale-Server start Start the server
./Hytale-Server stop Stop the server
./Hytale-Server restart Restart the server
./Hytale-Server status Show server status & configuration
./Hytale-Server console Open server console
./Hytale-Server logs View live server logs
./Hytale-Server update Update to latest version
./Hytale-Server backup Create manual backup
./Hytale-Server restore Restore from backup
./Hytale-Server config Edit server configuration
./Hytale-Server rotate-logs Manage and rotate server logs
./Hytale-Server autobackup Toggle automatic backups
./Hytale-Server autorestart Toggle automatic restarts
./Hytale-Server self-update Update the installer script
./Hytale-Server check-update Check for installer updates
./Hytale-Server autoupdate Toggle automatic installer updates
./Hytale-Server mods list List available and installed mods
./Hytale-Server mods install <name|number> Install a mod
./Hytale-Server mods uninstall <name|number> Uninstall a mod
./Hytale-Server uninstall Remove completely

๐Ÿ’ก Run ./Hytale-Server without arguments to show all commands.


โœจ Features

  • ๐Ÿ”ง Zero Configuration - Installs Java 25 and all dependencies automatically
  • ๐Ÿ” Auto Authentication - OAuth login with encrypted persistence
  • ๐Ÿ–ฅ๏ธ Tmux Console - Persistent console access (detach with Ctrl+B then D)
  • ๐ŸŽฏ No Systemd Required - Uses tmux and cron for maximum compatibility
  • ๐Ÿš€ Auto-Start on Boot - Optional cron-based auto-start
  • ๐Ÿ’พ Smart Backups - Manual & automatic backups with retention management (includes mods)
  • ๐Ÿ”„ Easy Restore - Quick world restoration from backup archives
  • ๐Ÿ”ฅ Firewall Setup - Automatic UFW configuration
  • โš™๏ธ Custom Ports - Choose your own port during installation
  • ๐ŸŽฎ Mod Manager - Install and uninstall mods by name or number
  • ๐Ÿ“ JVM Configuration - Customize memory allocation during installation
  • โฐ Auto-Restart - Optional scheduled server restarts every 3 days
  • ๐Ÿ“Š Status Monitoring - View server status, logs, and configuration at a glance
  • ๐Ÿ—‚๏ธ Log Rotation - Compress and manage server logs
  • ๐Ÿ”„ Auto-Update - Automatic installer script updates (weekly check)

Installation Prompts

During installation, you'll be asked:

  1. Server Port - Choose a custom port or use default (5520)
  2. Auto-Backup - Enable daily backups at 1:00 AM (recommended)
  3. Auto-Restart - Enable auto-start on boot and periodic restarts every 3 days (optional)
  4. JVM Memory - Configure minimum and maximum heap size (default: 4GB min, 8GB max)

First Start

Start the server after installation:

./Hytale-Server start

You'll see an authentication URL:

๐Ÿ”— Visit: https://oauth.accounts.hytale.com/oauth2/device/verify?user_code=xxxxx

Authenticate once - your credentials persist across all restarts.


๐Ÿ’พ Backup & Restore

Manual Backup

Create a backup of your world and configuration:

./Hytale-Server backup

What's backed up:

  • universe/ - World data
  • mods/ - Installed mods
  • config.json - Server configuration
  • permissions.json - Player permissions
  • bans.json - Banned players
  • whitelist.json - Whitelisted players

Automatic Backups

Enable daily backups at 1:00 AM:

./Hytale-Server autobackup
  • Keeps last 7 backups automatically
  • Compressed archives save disk space
  • Toggle on/off anytime

Restore from Backup

Restore your world from a previous backup:

./Hytale-Server restore

Select from available backups - safety backup created automatically before restore.


๐Ÿ”„ Auto-Update

The installer script can automatically update itself to get the latest features and bug fixes.

Check for Updates

Check if a newer version is available:

./Hytale-Server check-update

Manual Update

Update the installer script to the latest version:

./Hytale-Server self-update

What happens:

  • Creates a backup of the current script
  • Downloads the latest version from GitHub
  • Verifies the download
  • Automatically rolls back if anything fails

Enable Auto-Update

Turn on automatic weekly updates (every Sunday at 2:00 AM):

./Hytale-Server autoupdate

Features:

  • Automatic weekly checks for script updates
  • Safe update process with automatic rollback
  • No interruption to your server
  • Toggle on/off anytime

Note: Auto-update only updates the installer script itself, not the Hytale server. Use ./Hytale-Server update for server updates.


๐ŸŽฎ Mod Management

The server includes a built-in mod manager to easily install and manage mods.

List Available Mods

./Hytale-Server mods list

Shows:

  • Numbered list of available mods
  • Installation status (installed/not installed)
  • Currently installed mod sizes

Install a Mod

Install by name:

./Hytale-Server mods install example-mod

Or by number:

./Hytale-Server mods install 1

Process:

  • [1/3] Preparing installation
  • [2/3] Downloading mod
  • [3/3] Verifying installation

Uninstall a Mod

Uninstall by name:

./Hytale-Server mods uninstall example-mod

Or by number:

./Hytale-Server mods uninstall 1

Adding Custom Mods

Edit the script and add your mods to the MOD_URLS array:

MOD_URLS=(
  ["my-mod"]="https://example.com/downloads/my-mod.jar"
  ["another-mod"]="https://cdn.example.com/another-mod.jar"
)

Mods are automatically saved as <mod-name>.jar in the mods/ directory.


๏ฟฝ๐Ÿ–ฅ๏ธ System Requirements

Requirement Details
OS Ubuntu 20.04+ or Debian 10+ (any Linux with cron)
Disk 5 GB minimum
Access sudo/root (for installation only)
Account Valid Hytale account

Supported Distributions

Distribution Versions Status
Ubuntu 20.04, 22.04, 24.04 โœ…
Debian 10, 11, 12, 13 โœ…
Other Linux With cron and tmux โœ…

---

## ๐Ÿ“Š Monitoring

### Quick Status Check

View server status, enabled features, and configuration:

```bash
./Hytale-Server status

Shows:

  • Server running/stopped state
  • Auto-start on boot status
  • Auto-backup enabled/disabled
  • Auto-restart enabled/disabled
  • Server IP and port
  • Backup count
  • Authentication status
  • Installed mods count

Live Logs

View server logs in real-time:

./Hytale-Server logs

Console Access

Access the server console:

./Hytale-Server console

Detach from console: Ctrl+B then D


๐Ÿ“ Directory Structure

~/hytale_server/          # Main server files
โ”œโ”€โ”€ HytaleServer.jar
โ”œโ”€โ”€ Assets.zip
โ”œโ”€โ”€ universe/             # World data
โ”œโ”€โ”€ config.json
โ”œโ”€โ”€ permissions.json
โ”œโ”€โ”€ backups/              # Backup archives
โ””โ”€โ”€ logs/

~/.hytale-tools/          # Tools (isolated)
โ”œโ”€โ”€ hytale-downloader-linux-amd64
โ””โ”€โ”€ .hytale-downloader-credentials.json

~/.hytale-temp/           # Temporary downloads

๐Ÿ”ง Troubleshooting

Server won't start
systemctl status hytale
journalctl -u hytale -f
Console not accessible
tmux ls                      # Check if session exists
./Hytale-Server console   # Reconnect
Re-authenticate manually
./Hytale-Server console
# Then in console:
/auth persistence Encrypted
/auth login device
Backup failed or restore issues
# Check backup directory
ls -lh ~/hytale_server/backups/

# Check disk space
df -h

# Manual backup location
~/hytale_server/backups/hytale-backup-YYYYMMDD-HHMMSS.tar.gz

๐Ÿ’ฌ Support

Need help? Join the Hytale Discord


๐Ÿ“œ License & Disclaimer

This project is not affiliated with Hypixel Studios or the official Hytale project.

All trademarks and copyrights belong to their respective owners.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages