Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViaVersionAutoUpdate

A PaperMC plugin that automatically keeps ViaVersion up to date by checking the GitHub Releases API and downloading the latest jar into your plugins/ folder.


Features

  • Automatic updates – Checks for a new ViaVersion release on server start and on a configurable schedule.
  • Manual control – Use /viaupdater check or /viaupdater update to trigger a check or force-download at any time.
  • Safe download – Downloads to a temp file first, then atomically replaces the target. Follows HTTP redirects.
  • Old jar cleanup – Removes the previously installed ViaVersion jar after a successful download.
  • Tab-completion for all sub-commands.

Requirements

Requirement Version
Java 17+
Paper 1.21+

Installation

  1. Download the latest viaversion-auto-update-<version>.jar from Releases.
  2. Drop it into your server's plugins/ folder alongside ViaVersion.
  3. Start (or restart) the server.

Configuration

plugins/ViaVersionAutoUpdate/config.yml:

# Whether the plugin should automatically check and download updates.
auto-update: true

# How often (in minutes) the plugin checks for a new release.
check-interval-minutes: 60

Commands & Permissions

Command Description Permission
/viaupdater check Check GitHub and download if a newer version exists viaversionautoupdate.admin
/viaupdater update Force-download the latest ViaVersion viaversionautoupdate.admin
/viaupdater help Show command help viaversionautoupdate.admin

viaversionautoupdate.admin defaults to op.


Building from Source

mvn package

The compiled jar will be at target/viaversion-auto-update-<version>.jar.


How it Works

  1. On enable (and then every check-interval-minutes), the plugin calls the GitHub API:
    GET https://api.github.com/repos/ViaVersion/ViaVersion/releases/latest
  2. It reads the tag_name field from the JSON response.
  3. If the installed ViaVersion jar does not already contain that version string in its file name, the new jar is downloaded from GitHub Releases.
  4. The old jar is deleted. A server restart is required for Minecraft to load the new version.

About

Automatically updates ViaVersion

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages