FragStealers
FragStealers 是一款 Paper 插件,用于保护玩家储物、运营安全的容器商店、通过虚拟邮箱发送物品、与受信任的玩家共享受控访问权限,并为管理员提供带有日志记录的恢复工具。
要求
安装
- 停止服务器。
- 将
FragStealers-26.2-1.1.5.jar 放入服务器的 plugins 文件夹中。
- 启动服务器。
- 查看
plugins/FragStealers/config.yml。
从旧版本更新时,请保留现有的 FragStealers 数据文件。新设置和数据文件会在不替换现有配置值的情况下创建。
支持的容器
FragStealers 支持:
- Chests(箱子)
- Trapped chests(陷阱箱)
- Double chests(双层箱子)
- Barrels(木桶)
普通的 [fs] 锁可以保护已经装有物品的容器。商店和邮箱在创建时必须为空。一个容器不能注册为多种 FragStealers 类型。
普通储物锁
要保护一个容器:
- 将告示牌直接附着在容器的侧面,或在容器正上方放置站立式告示牌。
- 在第一行输入
[fs]。
- 完成告示牌的编辑。
告示牌会变为:
[protected]
PlayerName
所有者可以打开容器并移除保护告示牌。受信任的玩家可以根据信任系统打开容器。持有授权主钥匙的管理员可以打开容器并移除其告示牌以进行管理恢复。
只要保护告示牌未被移除,受保护的容器就无法被破坏。
当创建新的锁时,底层库存的现有查看者将被关闭,因此他们必须通过新的授权规则才能再次交互。活动的受保护库存会话也会重新检查授权,以防止撤销信任或失去主钥匙授权后留下过期的已授权视图。
为其他玩家创建锁
拥有 fragstealers.masterkey.use 权限的管理员可以在任意手持真主钥匙的情况下,为已知玩家创建储物锁:
Line 1: [fs]
Line 2: PlayerName
容器可以已经包含物品。所有权存储在目标玩家的 UUID 下,仿佛该玩家创建了锁,并且委托操作会记录在 audit-log.yml 中。
漏斗设置
以下设置仅适用于普通的 [fs] 锁:
hopper-take-item: false
hopper-put-item: true
hopper-take-item 控制漏斗和漏斗矿车的提取。
hopper-put-item 控制漏斗和漏斗矿车的插入。
- 商店和邮箱始终阻止漏斗访问。
受信任玩家访问
保护所有者可以在直视其受保护告示牌或六格内的容器时,向单个玩家授予访问权限。
/fs trust <player> [access|manage]
/fs untrust <player>
/fs trusted
目标玩家必须已被服务器所知。FragStealers 会检查服务器的玩家历史记录,而不要求玩家当前处于缓存或在线状态。信任关系按 UUID 存储在 trusted-players.yml 中,因此名称更改不会将访问权限转移给另一个账户。
访问级别
| 保护类型 |
access |
manage |
| Ordinary lock(普通锁) |
打开并使用容器 |
与 access 相同 |
| Shop(商店) |
仅添加有效库存 |
添加或移除库存、收取付款以及配置未配置的商店 |
| Mailbox(邮箱) |
通过受限的取件视图存款和收取邮件 |
完全管理邮箱内容 |
受信任的玩家不能:
- 移除或编辑保护告示牌
- 破坏受保护的容器
- 向保护中添加另一个箱子半块
- 更改保护的信任列表
只有保护所有者可以更改受信任的玩家。主钥匙管理员不能更改其他玩家的信任列表。移除保护会自动删除其信任条目。
授权是在使用受保护库存时进行检查的,而不仅仅是在打开时。因此,撤销或降低信任会立即生效于活动会话。由主钥匙打开的商店库存会话在主钥匙移除后也会回退到玩家的独立信任:manage 保持完整的库存访问权限,access 变为仅补货,而没有这两种权限的玩家会被关闭。
玩家商店
要创建商店:
- 将告示牌附着在空的受支持容器上。
- 在第一行输入
[fs shop]。
- 右键点击完成的商店告示牌。
- 选择出售的物品及其数量。
- 选择支付物品及其数量。
- 确认设置。
商店库存保留在物理容器中。收取的付款存储在 shops.yml 中,直到所有者、具有 manage 级别的受信任玩家或持有授权的主钥匙者收取它们。
物理商店库存独立于告示牌/菜单路径受到保护。当容器成为商店时,现有查看者会被关闭或重新验证,且在没有有效库存会话的情况下意外发生的物理库存交互会失败并关闭。连接的双层箱子库存作为受保护商店的一部分解决,因此在容器映射刷新期间,附加的一半无法提供临时的无限制路径。
物品选择
商店设置使用组织好的库存菜单,而不是文本或铁砧搜索。选择一个主类别,然后是一个子类别,然后是确切的物品。大型子类别使用“上一页”和“下一页”控件,“返回”按钮会回到上一级而不会取消设置。
主类别包括:
- Building Blocks(建筑方块)
- Wood & Natural(木材与自然)
- Ores & Minerals(矿石与矿物)
- Redstone(红石)
- Farming & Food(农业与食物)
- Mob Drops(怪物掉落物)
- Tools & Equipment(工具与装备)
- Decoration(装饰)
- Brewing & Enchanting(酿造与附魔)
- Transportation(交通)
- Nether(下界)
- End(末地)
- Storage & Utility(存储与实用)
- Miscellaneous(杂项)
商店目录允许的所有材料都可以通过这些类别和子类别访问。
付款
付款选择仅限于安全目录材料。主钥匙以及内部或其他不安全物品被排除在有效的商店付款选择之外。
购买成功后,FragStealers 在存储待领取的付款时,会保留已提取的付款物品堆栈的精确状态,包括其物品元数据。付款存储及相关商店变更以事务方式持久化,因此 YAML 写入失败不会导致仅部分交易被应用。
商店告示牌
配置好的商店告示牌显示:
- 出售物品为绿色
- 付款物品为红色
- 无发光效果的彩色文字
禁用商店
fs-shops: false
禁用商店会阻止新建商店和顾客购买。现有的商店记录仍会保存,所有者或管理员仍可管理、收取或拆除它们。
虚拟邮箱
创建自己的邮箱
- 将告示牌附加到空的兼容容器上。
- 在第一行输入
[fs mail]。
- 第二行留空。
- 完成编辑告示牌。
告示牌变为:
[mail]
PlayerName
为其他玩家创建邮箱
拥有 fragstealers.masterkey.use 权限的管理员可以在任意手持中持有真正的 Master Key,并为已知玩家创建邮箱:
第一行: [fs mail]
第二行: PlayerName
该邮箱以目标玩家的 UUID 存储,仿佛是该玩家自己创建的。委托创建记录在 audit-log.yml 中。
存入和收取邮件
- 其他玩家可以存入物品而无需查看现有邮箱内容。
- 占用槽位在存入模式下显示为锁定红色玻璃板。
- 单个箱子或木桶邮箱有 27 个虚拟槽位。
- 双层箱子邮箱有 54 个虚拟槽位。
- Master Key 和内部菜单物品无法邮寄。
- 成功在线存入后,所有者会收到 You've Got Mail!;当仍有邮件等待且玩家加入服务器时,也会收到一次。
具有访问级别信任的玩家可收取邮件,但无法通过拾取模式插入或重新排列物品。具有管理级别信任的玩家可获得完整的邮箱内容控制权。
邮箱的后端容器不支持直接接口尝试。直接物理打开操作会被取消,意外的物理点击/拖拽视图会失败关闭。创建邮箱时会关闭现有的后端容器查看器,新附加的双层箱子的一半立即被视为受保护邮箱的一部分,而不是等待延迟刷新。
如果邮箱拾取持久化失败,恢复仅限于与该拾取事务相关的物品,而不是恢复玩家整个库存的旧快照。这防止了无关的库存更改被覆盖;过期的拾取恢复标记也会在玩家再次加入时清理。
禁用邮箱
fs-mail: false
禁用邮箱会阻止新建邮箱和新存入。现有邮箱数据仍会保存,并可继续收取或恢复。
Master Key
Master Key 是一种不可破坏的自定义木斧,通过持久化物品数据识别。重命名的普通木斧不能作为 Master Key 使用。
/fs give masterkey
/fs give masterkey <player>
要求:
- 给予钥匙需要
fragstealers.masterkey.give 权限。
- 使用钥匙需要
fragstealers.masterkey.use 权限。
- 通常,在访问或管理其他玩家的防护设施时,钥匙必须保持在主手。
- 委托锁和邮箱创建接受任意手持中的钥匙,以便正常放置告示牌。
Master Key 不能直接破坏受保护的容器。管理员必须先移除防护告示牌。
命令
| 命令 |
描述 |
/fs trust <player> [access|manage] |
添加或更新针对当前目标的防护设施的受信任玩家 |
/fs untrust <player> |
从受保护的设施中移除受信任玩家 |
/fs trusted |
列出受保护设施的受信任玩家及访问级别 |
/fs give masterkey |
给予发送者一个 Master Key |
/fs give masterkey <player> |
给予在线玩家一个 Master Key |
/fs reload |
重载 config.yml 并合并缺失的默认值 |
权限
| 权限 |
默认值 |
用途 |
fragstealers.lock.create |
true |
创建普通存储锁 |
fragstealers.shop.create |
true |
创建玩家商店 |
fragstealers.mail.create |
true |
创建邮箱 |
fragstealers.trust.manage |
true |
管理玩家拥有的防护设施上的受信任玩家 |
fragstealers.masterkey.give |
op |
给予 Master Keys |
fragstealers.masterkey.use |
op |
使用 Master Key 管理访问权限 |
fragstealers.admin.reload |
op |
重载插件配置 |
数据文件与持久化
FragStealers 将其数据存储于:
plugins/FragStealers/
├── config.yml
├── locks.yml
├── shops.yml
├── mailboxes.yml
├── trusted-players.yml
└── audit-log.yml
不要在服务器运行时编辑数据文件。FragStealers 使用原子 YAML 写入以降低部分或损坏保存的风险。
需要持久化的面向玩家的防护、信任、商店和邮箱变更受到保护,这样失败的持久化写入可以回滚相关的内存或库存更改,而不是静默地使内存和磁盘不同步。容器刷新持久化也在保存失败时恢复先前的映射。
管理审计日志
audit-log.yml 记录通过 Master Key 访问执行的管理操作,包括:
- 为其他玩家创建存储锁
- 为其他玩家创建邮箱
- 移除其他玩家的防护告示牌
- 从其他玩家的受保护锁中提取物品
- 从其他玩家的商店中提取库存
- 从其他玩家的邮箱中提取物品
超过 30 天的审计条目会自动清除。
构建、测试与发布验证
FragStealers 26.2-1.1.5 使用 Java 25 针对 paper-api:26.2.build.117-stable 构建。
Gradle 构建运行自动化行为回归测试,涵盖保护与库存授权以及持久性故障恢复。GitHub Actions 用于验证向 main、agent/** 和 dev/** 分支的拉取请求(Pull Requests)和推送操作,同时也支持手动触发构建调度。
自动预发布(prerelease)的发布仍限于经过授权的 agent/** 提交标记流程。工作流能够识别当前的语义化插件后缀格式,包括类似 26.2-1.1.5-beta.1 和 26.2-1.1.5-rc.1 的版本号,同时为了历史重建的需要,旧的 26.2 更新编号标签仍然被接受。
发布打包会在上传前验证预期的 JAR 文件名、必需的 plugin.yml 和 config.yml 资源文件,以及内嵌的插件版本号。发布构建还会生成一个 SHA-256 校验和。本次发布的稳定版工件名称为:
FragStealers-26.2-1.1.5.jar
FragStealers
FragStealers is a Paper plugin for protecting player storage, operating secure container shops, sending items through virtual mailboxes, sharing controlled access with trusted players, and giving administrators a logged recovery tool.
Requirements
Installation
- Stop the server.
- Place
FragStealers-26.2-1.1.5.jar in the server's plugins folder.
- Start the server.
- Review
plugins/FragStealers/config.yml.
When updating from an older version, keep the existing FragStealers data files. New settings and data files are created without replacing existing configuration values.
Supported containers
FragStealers supports:
- Chests
- Trapped chests
- Double chests
- Barrels
Ordinary [fs] locks can protect containers that already hold items. Shops and mailboxes must still be empty when they are created. A container cannot be registered as more than one FragStealers type.
Ordinary storage locks
To protect a container:
- Attach a sign directly to the side of the container, or place a standing sign directly above it.
- Enter
[fs] on the first line.
- Finish editing the sign.
The sign changes to:
[protected]
PlayerName
The owner can open the container and remove the protection sign. Trusted players can open the container according to the trust system. Authorized Master Key holders can open the container and remove its sign for administrative recovery.
The protected container cannot be broken until its protection sign is removed.
When a new lock is created, existing viewers of the backing inventory are closed so they must pass the new authorization rules before interacting again. Active protected inventory sessions also recheck authorization so revoked trust or loss of Master Key authorization cannot leave a stale authorized view open.
Creating a lock for another player
An administrator with fragstealers.masterkey.use can hold a genuine Master Key in either hand and create a storage lock for a known player:
Line 1: [fs]
Line 2: PlayerName
The container can already contain items. Ownership is stored under the target player's UUID as though that player created the lock, and the delegated action is recorded in audit-log.yml.
Hopper settings
The following settings apply only to ordinary [fs] locks:
hopper-take-item: false
hopper-put-item: true
hopper-take-item controls extraction by hoppers and hopper minecarts.
hopper-put-item controls insertion by hoppers and hopper minecarts.
- Shops and mailboxes always block hopper access.
Trusted player access
Protection owners can grant access to individual players while looking directly at their protected sign or container within six blocks.
/fs trust <player> [access|manage]
/fs untrust <player>
/fs trusted
The target player must already be known to the server. FragStealers checks the server's player history rather than requiring the player to be currently cached or online. Trust is stored by UUID in trusted-players.yml, so name changes do not transfer access to another account.
Access levels
| Protection |
access |
manage |
| Ordinary lock |
Open and use the container |
Same as access |
| Shop |
Add valid stock only |
Add or remove stock, collect payments, and configure an unconfigured shop |
| Mailbox |
Deposit and collect mail through a restricted pickup view |
Fully manage mailbox contents |
Trusted players cannot:
- Remove or edit the protection sign
- Break the protected container
- Add another chest half to the protection
- Change the protection's trust list
Only the protection owner can change trusted players. Master Key administrators cannot change another player's trust list. Removing a protection automatically deletes its trust entries.
Authorization is checked while protected inventories are in use rather than only when they are opened. Revoking or reducing trust therefore takes effect on the active session. A shop stock session that was opened with a Master Key also falls back to the player's independent trust after the key is removed: manage keeps full stock access, access becomes restock-only, and a player with neither permission is closed out.
Player shops
To create a shop:
- Attach a sign to an empty supported container.
- Enter
[fs shop] on the first line.
- Right-click the completed shop sign.
- Select the item being sold and its quantity.
- Select the payment item and its quantity.
- Confirm the setup.
Shop stock remains in the physical container. Collected payments are stored in shops.yml until the owner, a manage-level trusted player, or an authorized Master Key holder collects them.
The physical shop inventory is protected independently from the sign/menu path. Existing viewers are closed or revalidated when a container becomes a shop, and unexpected physical stock interactions without a valid stock session fail closed. Connected double-chest stock is resolved as part of the protected shop so an attached half cannot provide a temporary unrestricted path while container mappings refresh.
Item selection
Shop setup uses organized inventory menus instead of text or anvil search. Choose a main category, then a subcategory, then the exact item. Large subcategories use Previous and Next page controls, and Back buttons return to the previous level without cancelling setup.
Main categories are:
- Building Blocks
- Wood & Natural
- Ores & Minerals
- Redstone
- Farming & Food
- Mob Drops
- Tools & Equipment
- Decoration
- Brewing & Enchanting
- Transportation
- Nether
- End
- Storage & Utility
- Miscellaneous
All materials allowed by the shop catalog remain reachable through these categories and subcategories.
Payments
Payment selection is restricted to safe catalog materials. Master Keys and internal or otherwise unsafe items are excluded from valid shop payment choices.
When a purchase succeeds, FragStealers preserves the exact withdrawn payment item stacks, including their item metadata, when storing payments for later collection. Payment storage and related shop mutations are persisted transactionally so a failed YAML write does not leave only part of the transaction applied.
Shop signs
Configured shop signs display:
- The sale item in green
- The payment item in red
- Colored text without a glow effect
Disabling shops
fs-shops: false
Disabling shops prevents new shop creation and customer purchases. Existing shop records remain saved, and owners or administrators can still manage, collect, or dismantle them.
Virtual mailboxes
Creating your own mailbox
- Attach a sign to an empty supported container.
- Enter
[fs mail] on the first line.
- Leave the second line blank.
- Finish editing the sign.
The sign changes to:
[mail]
PlayerName
Creating a mailbox for another player
An administrator with fragstealers.masterkey.use can hold a genuine Master Key in either hand and create a mailbox for a known player:
Line 1: [fs mail]
Line 2: PlayerName
The mailbox is stored under the target player's UUID as though that player created it. Delegated creation is recorded in audit-log.yml.
Depositing and collecting mail
- Other players can deposit items without seeing existing mailbox contents.
- Occupied slots appear as locked red panes during deposit mode.
- A single chest or barrel mailbox has 27 virtual slots.
- A double chest mailbox has 54 virtual slots.
- Master Keys and internal menu items cannot be mailed.
- The owner receives You've Got Mail! after a successful online deposit and once after joining while mail remains waiting.
Access-level trusted players can collect mail but cannot insert or rearrange items through pickup mode. Manage-level trusted players receive full mailbox-content controls.
Mailbox backing containers are not a supported direct interface. Direct physical open attempts are cancelled, and unexpected physical click/drag views fail closed. Existing backing-container viewers are closed when a mailbox is created, and a newly attached double-chest half is immediately treated as part of the protected mailbox instead of waiting for a deferred refresh.
If mailbox pickup persistence fails, recovery is limited to items associated with that pickup transaction rather than restoring an old snapshot of the player's entire inventory. This prevents unrelated inventory changes from being overwritten; stale pickup recovery markers are also cleaned up when the player joins again.
Disabling mailboxes
fs-mail: false
Disabling mailboxes prevents new mailbox creation and new deposits. Existing mailbox data remains saved and can still be collected or recovered.
Master Key
The Master Key is an unbreakable custom wooden axe identified through persistent item data. A renamed ordinary wooden axe does not work as a Master Key.
/fs give masterkey
/fs give masterkey <player>
Requirements:
- Giving keys requires
fragstealers.masterkey.give.
- Using keys requires
fragstealers.masterkey.use.
- The key normally must remain in the main hand while accessing or managing another player's protection.
- Delegated lock and mailbox creation accept the key in either hand so the sign can be placed normally.
A Master Key cannot directly break a protected container. The administrator must remove the protection sign first.
Commands
| Command |
Description |
/fs trust <player> [access|manage] |
Adds or updates a trusted player on the protection being targeted |
/fs untrust <player> |
Removes a trusted player from the targeted protection |
/fs trusted |
Lists trusted players and access levels for the targeted protection |
/fs give masterkey |
Gives the sender a Master Key |
/fs give masterkey <player> |
Gives an online player a Master Key |
/fs reload |
Reloads config.yml and merges missing defaults |
Permissions
| Permission |
Default |
Purpose |
fragstealers.lock.create |
true |
Create ordinary storage locks |
fragstealers.shop.create |
true |
Create player shops |
fragstealers.mail.create |
true |
Create mailboxes |
fragstealers.trust.manage |
true |
Manage trusted players on protections the player owns |
fragstealers.masterkey.give |
op |
Give Master Keys |
fragstealers.masterkey.use |
op |
Use Master Key administrative access |
fragstealers.admin.reload |
op |
Reload the plugin configuration |
Data files and persistence
FragStealers stores its data in:
plugins/FragStealers/
├── config.yml
├── locks.yml
├── shops.yml
├── mailboxes.yml
├── trusted-players.yml
└── audit-log.yml
Do not edit data files while the server is running. FragStealers uses atomic YAML writes to reduce the risk of partial or corrupted saves.
Player-facing protection, trust, shop, and mailbox mutations that require persistence are guarded so failed durable writes can roll back the associated in-memory or inventory change instead of silently leaving memory and disk out of sync. Container-refresh persistence also restores the prior mapping when a save fails.
Administrative audit log
audit-log.yml records administrative actions performed through Master Key access, including:
- Creating a storage lock for another player
- Creating a mailbox for another player
- Removing another player's protection sign
- Withdrawing items from another player's protected lock
- Withdrawing stock from another player's shop
- Withdrawing items from another player's mailbox
Audit entries older than 30 days are purged automatically.
Build, test, and release verification
FragStealers 26.2-1.1.5 is built with Java 25 against paper-api:26.2.build.117-stable.
The Gradle build runs automated behavioral regression tests for protection and inventory authorization as well as persistence-failure recovery. GitHub Actions validates pull requests and pushes to main, agent/**, and dev/**, with manual build dispatch also supported.
Automatic prerelease publishing remains restricted to the authorized agent/** commit-marker flow. The workflows understand the current semantic plugin suffix format, including versions such as 26.2-1.1.5-beta.1 and 26.2-1.1.5-rc.1, while older 26.2 update-number tags remain accepted for historical rebuilds.
Release packaging verifies the expected JAR filename, required plugin.yml and config.yml resources, and the embedded plugin version before upload. Release builds also generate a SHA-256 checksum. The stable artifact name for this release is:
FragStealers-26.2-1.1.5.jar
评论 0
登录后参与评分
还没有评论,来抢沙发吧