跳到正文

Restore Config

作者:SpaceCat_97

A server tool designed to make config restores easy

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Brief Overview

This mod is, simply put, a single command designed as a “backup solution”. Sometimes configs can be reset, modified or wiped and that means you have to go through them all again, one by one, resetting the values as they should be (or copying the whole folder over).

 

I agree that there are easy enough workarounds. But what if your staff are unable to access the server’s file system?  Enter RestoreConfig. This mod adds a single command (/resetoreconfig) that copies all the files from one folder (root/configrestore) to the config folder, replacing any files that have the same name – including sub-directories!

 

How does it work?

Easy! First of all create a folder in the root server installation directory called “configrestore” (without the quotes). You can also run the command /restoreconfig and if the folder doesnt exist, it will create one for you.

After that, put any configs you’d like to keep a backup of in there.

From then on, you can run /restoreconfig at any point to copy the backed up configs to the config folder.

Restart the server and the new configs will apply.

 

Warnings

This mod does work as a server-side only mod. However it will not register the command for clients. If you install it on the server only then the command can only be run from the console.

If installed on the client and server, the player who runs the command must have OP.

I strongly suggest that you edit any configs and save them in the configrestore folder. From there run the command /restoreconfig to copy them over. This prevents any mistakes and configs being overwritten.

 

Why tho?

I run a beta server and it crashes a lot. We have found that sometimes these crashes would result in the config files becoming incorrectly formatted (somehow). Now that we have this mod our server OPs are easily able to restore the server to it’s former glory without the need to remotely access the file system.

常见问题

Restore Config 支持哪些 Minecraft 版本?

Restore Config 支持 Minecraft Java 版 1.16。下载时注意选择和你游戏版本一致的文件。

Restore Config 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 模组加载器,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

SpaceCat_97 的其他作品

查看全部 →