MineBackup-Plugin
MineBackup-Plugin 是一个基于 Minecraft 1.21 的 Spigot 插件。作为 MineBackup/FolderRewind 的辅助组件,它通过 KnotLink 协议与主程序通信,实现跨端数据同步和信号广播。它允许远程执行备份、还原、自动备份等功能。
模组版本请参阅 MineBackup-Mod。相较于模组版本,插件版针对服务端使用进行了大量优化。
特性
- 支持 KnotLink 协议:通过长期存在的 TCP 连接(默认端口
6372)订阅来自 MineBackup 主程序的广播信号,实现低延迟的跨端通信。
- 完全兼容 1.21.x:基于最新的 Spigot API 1.21 开发,支持 Java 21。
- 轻量级架构:专注于信号订阅和命令转发,占用极少的服务器资源。
要求
- Minecraft 版本:1.21.x
- 服务端软件:Spigot / Paper 及其衍生版本
- Java 版本:Java 21 或更高
- 依赖项:需要运行 MineBackup/FolderRewind+MineRewind 主程序(提供 KnotLink 信号源)。
安装与使用
- 从 Releases 页面下载最新的
.jar 文件。
- 将下载的
.jar 文件放入服务端的 plugins 文件夹中。
- 启动或重启你的服务端。
- 确保 MineBackup 主程序正在运行,并且你的电脑上已安装 KnotLink Server。具体来说,Linux/macOS 用户无需单独安装 KnotLink Server。
命令与权限
| 命令 |
参数 |
描述 |
| /mb save |
(无) |
在游戏中手动执行全地图保存,等同于 /save-all。 |
| /mb list_configs |
(无) |
列出你在 MineBackup 主程序中设置的所有配置档案及其 ID。 |
| /mb list_worlds |
<config_id> |
列出指定配置下的所有世界及其索引号。 |
| /mb list_backups |
<config_id> <world_index> |
列出指定世界可用的所有备份文件。 |
| /mb backup |
<config_id> <world_index> [comment] |
指令主程序为指定世界创建备份。可附加可选注释。 |
| /mb restore |
<config_id> <world_index> <filename> |
指令主程序使用指定的备份文件还原世界。如果你打算还原当前世界,必须使用 /mb quickrestore。 |
| /mb auto |
<config_id> <world_index> <interval_time> |
请求 MineBackup 以指定的间隔时间(分钟)执行自动备份任务。 |
| /mb stop |
<config_id> <world_index> |
请求 MineBackup 停止自动备份任务。 |
| /mb quicksave |
[comment] |
对当前世界执行备份。 |
| /mb quickrestore |
[filename] |
对当前世界执行热还原。如果未提供文件名,则自动选择最新的备份文件。 |
| /mb confirm |
(无) |
确认执行热还原。 |
| /mb abort |
(无) |
取消即将执行的热还原。 |
| /mb reload |
(无) |
重新加载配置。 |
请注意,插件和模组在具体执行行为上存在差异。 使用时请仔细留意。
MineBackup-Plugin
MineBackup-Plugin is a Spigot plugin based on Minecraft 1.21. As a complementary component to MineBackup/FolderRewind, it communicates with the main program through the KnotLink protocol, enabling cross-end data synchronization and signal broadcasting. It allows remote control of backup, restoration, automatic backup, and other functions.
For the mod version, see MineBackup-Mod. Compared to the mod version, the plugin version has undergone many optimizations for server-side use.
Features
- KnotLink Protocol Support: Subscribes to broadcast signals from the MineBackup main program via a long-lived TCP connection (default port
6372), enabling low-latency cross-end communication.
- Fully Compatible with 1.21.x: Developed based on the latest Spigot API 1.21, supporting Java 21.
- Lightweight Architecture: Focuses on signal subscription and command forwarding, consuming minimal server resources.
Requirements
- Minecraft Version: 1.21.x
- Server Software: Spigot / Paper and its forks
- Java Version: Java 21 or higher
- Dependencies: Requires the MineBackup/FolderRewind+MineRewind main program to be running (provides the KnotLink signal source).
Installation and Usage
- Download the latest
.jar file from the Releases page.
- Place the downloaded
.jar file into your server's plugins folder.
- Start or restart your server.
- Ensure the MineBackup main program is running and that the KnotLink Server is installed on your computer. Specifically, Linux/macOS users do not need to install the separate KnotLink Server.
Commands and Permissions
| Command |
Parameters |
Description |
| /mb save |
(none) |
Manually performs a full world save in-game, equivalent to /save-all. |
| /mb list_configs |
(none) |
Lists all configuration profiles you have set up in the MineBackup main program along with their IDs. |
| /mb list_worlds |
<config_id> |
Lists all worlds under the specified configuration along with their index numbers. |
| /mb list_backups |
<config_id> <world_index> |
Lists all available backup files for the specified world. |
| /mb backup |
<config_id> <world_index> [comment] |
Commands the main program to create a backup for the specified world. An optional comment can be attached. |
| /mb restore |
<config_id> <world_index> <filename> |
Commands the main program to restore the world using the specified backup file. If you intend to restore the current world, you must use /mb quickrestore. |
| /mb auto |
<config_id> <world_index> <interval_time> |
Requests MineBackup to perform automatic backup tasks at the specified interval (in minutes). |
| /mb stop |
<config_id> <world_index> |
Requests MineBackup to stop the automatic backup task. |
| /mb quicksave |
[comment] |
Performs a backup for the current world. |
| /mb quickrestore |
[filename] |
Performs a hot restore for the current world. If no filename is provided, the latest backup file is automatically selected. |
| /mb confirm |
(none) |
Confirms the execution of a hot restore. |
| /mb abort |
(none) |
Cancels an impending hot restore. |
| /mb reload |
(none) |
Reloads the configuration. |
Please note that the specific execution behavior differs between the plugin and the mod. Pay close attention during use.
评论 0
登录后参与评分
还没有评论,来抢沙发吧