Mcserverupdater

A program to update Minecraft server jar
Alternatives To Mcserverupdater
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Paper7,497
5 hours ago1December 14, 2021495otherJava
High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies
Essentials1,641
20 hours ago171gpl-3.0Java
The modern Essentials suite for Spigot and Paper.
Purpur1,547
18 hours ago5mitKotlin
Purpur is a drop-in replacement for Paper servers designed for configurability, and new fun and exciting gameplay features.
Minecraft Optimization1,310
a month ago1
Minecraft server optimization guide
Minecraftdev1,191
15 days ago219lgpl-3.0Kotlin
Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
Slimefun4759
18 days ago112gpl-3.0Java
Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
Yatopia478
2 years ago20Kotlin
The Most Powerful and Feature Rich Minecraft Server Software!
Akarin454
3 months ago16otherJava
Akarin is a powerful server software from the 'new dimension'
Plotsquared442
2 days ago26October 04, 2022142gpl-3.0Java
PlotSquared - Reinventing the plotworld
Item Nbt Api401
21 hours ago11mitJava
Add custom NBT tags to Items/Tiles/Entities without NMS!
Alternatives To Mcserverupdater
Select To Compare


Alternative Project Comparisons
Readme

MCServerUpdater

This is a simple program that will check for updates to Minecraft server jar and download them if they are available.

Download

Download the latest version of MCServerUpdater from here

Arguments

Option                           Description
------                           -----------
--help                           Get the list of arguments
--projects                       Get the list of projects
--output <String>                The output file path (default: server.jar)
--project <String>               The project to download (default: paper)
--version <String>               The project version (default: default)

Examples

  • List all available projects
    • java -jar MCServerUpdater.jar --projects
  • Download the latest build of Paper
    • java -jar MCServerUpdater.jar
    • java -jar MCServerUpdater.jar --project paper
  • Download the latest build of Paper and save it to the file server.jar
    • java -jar MCServerUpdater.jar --output server.jar
    • java -jar MCServerUpdater.jar --project paper --output server.jar
  • Download the latest build of Paper 1.17.1
    • java -jar MCServerUpdater.jar --project paper --version 1.17.1

Use this in your projects

  1. Add this as a dependency
  • Maven

<repositories>
    <repository>
        <id>codemc-repo</id>
        <url>https://repo.codemc.io/repository/maven-public/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>me.hsgamer</groupId>
        <artifactId>mc-server-updater-lib</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>
  • Gradle
repositories {
    maven { url = "https://repo.codemc.io/repository/maven-public/" }
}

dependencies {
    compileOnly(group: 'me.hsgamer', name: 'mc-server-updater-lib', version: 'VERSION')
}
  1. Use the UpdateBuilder to create, execute the update process and get the result as UpdateStatus
import java.util.concurrent.CompletableFuture;

class Main {
  public static void main(String[] args) {
    UpdateBuilder builder = UpdateBuilder.updateProject("paper")
            .version("1.17.1")
            .outputFile("server.jar");

    // Execute the update process asynchronously
    CompletableFuture<UpdateStatus> future = builder.executeAsync();
    
    // Execute the update process synchronously
    UpdateStatus status = builder.execute();
  }
}
  1. Do whatever you want with the UpdateStatus

Additional System Properties

Name Description Default
MCServerUpdater.javaExecutable The Java executable to run external processes (Spigot Updater, etc.) java
Popular Minecraft Projects
Popular Paper Projects
Popular Games Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Paper
Minecraft
Fabric
Spigot
Bukkit
Minecraft Server
Waterfall
Spongepowered