PInvRollback
PInvRollback 是一款 Minecraft 插件,旨在帮助服务器管理员安全地管理和回滚玩家物品栏及末影箱。它支持多种服务器版本(Spigot/Paper)。
功能
- 物品栏与末影箱回滚:高效保存和恢复玩家的物品。
- 手动备份:玩家或管理员可以手动创建备份。
- 图形用户界面 (GUI):通过游戏内菜单轻松管理备份。
- 多版本支持:兼容 Spigot 1.21.1、1.21.3 以及 Paper 环境。
模块
本项目采用以下模块结构以确保跨版本兼容性:
- core:包含核心逻辑和抽象实现。
- dist:负责最终插件 jar 包的打包和分发。
- spigot-1.21.1:针对 Spigot 1.21.1 的版本特定实现。
- spigot-1.21.3:针对 Spigot 1.21.3 的版本特定实现。
- paper:针对 Paper 的特定实现和优化。
构建插件
本项目使用 Maven 进行依赖管理和构建。
要在根目录下构建项目,请运行以下命令:
mvn clean install
编译后的插件 jar 包通常位于 dist/target 目录中。
命令
插件的主要命令为 /pinvrollback(如果配置了别名,也可使用别名)。
/pinvrollback create [message] [player] - 创建物品栏的手动备份。
/pinvrollback rollback <id> [reason] [player] - 回滚到特定的备份 ID。
/pinvrollback list [page] [player] - 列出某玩家的所有可用备份。
/pinvrollback ui [player] - 打开用于管理备份的图形用户界面。
权限
以下是与插件命令相关的权限:
commands.pinvrollback - 使用任何插件命令的基础权限。
commands.pinvrollback.create - 创建手动备份的权限。
commands.pinvrollback.rollback - 执行回滚操作的权限。
commands.pinvrollback.list - 列出备份的权限。
commands.pinvrollback.ui - 打开备份管理 GUI 的权限。
管理员权限:
commands.create.other - 为其他玩家创建备份。
commands.pinvrollback.rollback.other - 为其他玩家执行回滚。
commands.list.other - 查看其他玩家的备份。
commands.pinvrollback.ui.other - 为其他玩家打开 GUI。
PInvRollback
PInvRollback is a Minecraft plugin designed to help server administrators manage and rollback player inventories and ender chests safely. It supports multiple server versions (Spigot/Paper).
Features
- Inventory and Ender Chest Rollback: Save and restore players' items efficiently.
- Manual Backups: Players or admins can manually create backups.
- Graphical User Interface (GUI): Manage backups easily through an in-game menu.
- Multi-Version Support: Compatible with Spigot 1.21.1, 1.21.3, and Paper environments.
Modules
This project is structured into the following modules to ensure cross-version compatibility:
- core: Contains the core logic and abstract implementations.
- dist: Handles the packaging and distribution of the final plugin jar.
- spigot-1.21.1: Version-specific implementations for Spigot 1.21.1.
- spigot-1.21.3: Version-specific implementations for Spigot 1.21.3.
- paper: Paper-specific implementations and optimizations.
Building the Plugin
This project uses Maven for dependency management and building.
To build the project, run the following command in the root directory:
mvn clean install
The compiled plugin jar will typically be located in the dist/target directory.
Commands
The main command for the plugin is /pinvrollback (or aliases if configured).
/pinvrollback create [message] [player] - Create a manual backup of the inventory.
/pinvrollback rollback <id> [reason] [player] - Rollback to a specific backup ID.
/pinvrollback list [page] [player] - List all available backups for a player.
/pinvrollback ui [player] - Open the graphical user interface for managing backups.
Permissions
Here are the permissions associated with the plugin commands:
commands.pinvrollback - Base permission for using any plugin command.
commands.pinvrollback.create - Permission to create manual backups.
commands.pinvrollback.rollback - Permission to perform rollbacks.
commands.pinvrollback.list - Permission to list backups.
commands.pinvrollback.ui - Permission to open the backup management GUI.
Admin Permissions:
commands.create.other - Create backups for other players.
commands.pinvrollback.rollback.other - Perform rollbacks for other players.
commands.list.other - View backups of other players.
commands.pinvrollback.ui.other - Open the GUI for other players.
评论 0
登录后参与评分
还没有评论,来抢沙发吧