Skip to content

Ongamecloud/game-version-updater

Repository files navigation

Auto Egg Updater

Automatic game version updater for Ongame Cloud Pterodactyl servers.

Features

  • Automatic version detection for multiple games and software
  • Cron-based scheduling (runs every 5 hours)
  • Direct Pterodactyl database integration
  • Support for multiple egg variables per game
  • Clean, organized structure by game and software type

Supported Games

Minecraft

  • Vanilla: All releases + latest snapshots
  • Paper: All versions with Minecraft version mapping

Installation

npm install

Configuration

  1. Copy .env.example to .env
  2. Configure your Pterodactyl database credentials
  3. Adjust cron schedule if needed (default: every 5 hours)

Usage

# Development
npm run dev

# Production
npm run build
npm start

Project Structure

src/
├── games/              # Game-specific version fetchers
│   └── Minecraft/
│       ├── Vanilla/
│       └── Paper/
├── database/           # Database management
├── services/           # Core services
├── types/              # TypeScript types
└── utils/              # Utility functions

How It Works

  1. Cron job runs every 5 hours
  2. Fetches latest versions from game APIs
  3. Updates Pterodactyl egg_variables table
  4. Maintains version order (newest first)
  5. Uses local SQLite DB to map variables to update strategies

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published