• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

eclair4151/MinecraftUpdater: auto update your minecraft server

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

eclair4151/MinecraftUpdater

开源软件地址(OpenSource Url):

https://github.com/eclair4151/MinecraftUpdater

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

MinecraftUpdater

This is a python package to automate the updating of your Minecraft server.
It's very annoying to have to download the jar, ftp it over, stop the server, back up your world, etc. This automates alll that. just git clone this in the root of your server so there is an extra folder. Then run python3 update.py in the new folder. It will check if you have the latest version of Minecraft using the Mojang provided manfest URL. If your server is out of date, it will download the latest minecraft server jar from the official Mojang S3 bucket. Then using screen it will announce to the server that it is going to restart for an update, and give a 30 seconds countdown before stopping the server. Next it will then backup your world into a new folder, incase something goes wrong. It then updates the server jar and starts the server back up in a screen session so it's in the background.

Configuration

Latest vs. Snapshot

UPDATE_TO_SNAPSHOT = <True,False> whether to update to the latest snapshot, or main release

Backup Directory

BACKUP_DIR = <name of directory to save files>

Log File

LOG_FILENAME = <name of file to save log messages>

Ram Settings

RAM_INITIAL = <amount of ram to start the server with>
RAM_MAX = <maximum amount of ram to allocate torwards the server>

Scheduling Updates

This script is intended to be run as a cron job.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap