ryanshotwell / Minecraft-Server-Latest-Update-Powershell

A PowerShell script that will get the latest version of Minecraft and download the server jar file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minecraft Server Latest Update Powershell

This script will check the official Minecraft Version Manifest from Mojang to retrieve the latest release version number. It will then download the Minecraft Server jar file to the directory you specify. The script can also update your "run.bat" file to use the newly downloaded jar file.

⚠️ Please make sure your server is not running when updating the server.

⚠️ Always make backups of your world(s) before updating! I am not responsible for corrupted worlds.

Configuration

All configuration values are stored at the beginning of the script.

$saveJarLocation

This should be set to the directory that the minecraft_server.jar file is located in. Example: "C:\Games\Minecraft"

$updateStartScript

This should be set to a boolean value: $TRUE or $FALSE

$startServerFile

This should be set to filename for the script that starts the server. Example: "ServerStart.bat"

About

A PowerShell script that will get the latest version of Minecraft and download the server jar file


Languages

Language:PowerShell 100.0%