受保护物品
概述
Protected Items 允许服务器管理员将任何物品标记为受保护状态。受保护的物品会始终跟随玩家——它无法被丢弃、在死亡时丢失、放置、使用或移入外部存储。
保护标志存储在物品的持久数据容器(PDC)中,因此它可以在服务器重启后保留,并在不同库存之间转移时保持有效。
命令
| 命令 |
权限 |
描述 |
/protected add |
protecteditems.use |
将手持物品标记为受保护 |
/protected remove |
protecteditems.use |
移除手持物品的保护状态 |
/protected check |
protecteditems.use |
检查手持物品是否受保护 |
/protected list |
protecteditems.use |
列出你自己的受保护物品 |
/protected list <player> |
protecteditems.admin |
列出其他玩家库存中的受保护物品 |
/protected listall |
protecteditems.admin |
列出服务器上所有的受保护物品 |
所有命令都需要物品位于玩家的主手(list 和 listall 除外)。命令只能由玩家执行,不能从控制台运行。
权限
| 权限 |
默认值 |
描述 |
protecteditems.use |
op |
允许使用 /protected 命令 |
protecteditems.admin |
op |
允许使用 /protected list <player> 和 /protected listall |
protecteditems.bypass-store |
op |
允许将受保护物品放入任何容器中 |
受保护物品的行为
掉落
尝试丢弃受保护物品的操作会被取消。玩家会收到一条消息提示。
死亡
受保护物品不会在死亡时掉落。它们会在玩家重生后恢复到其库存中。如果库存空间不足,它们会在玩家附近掉落。
方块放置
将受保护物品作为方块放置的操作会被取消。
右键使用
当物品受保护时,对其消耗品/投掷物(如鸡蛋、雪球、刷怪蛋等)的右键使用操作会被取消。
容器
受保护物品无法被移入常规容器(箱子、 barrels、漏斗等)。但是,它们可以存入末影箱。
拥有 protecteditems.bypass-store 权限的玩家可以将受保护物品放入任何容器中(这有助于向其他玩家分发物品)。
物品展示框
受保护物品无法放置在物品展示框中。
本地化
该插件支持英语和俄语。语言会根据每个玩家的 Minecraft 客户端语言设置自动选择。如果玩家的区域设置不受支持,则默认使用英语。
Protected Items
Overview
Protected Items lets server operators mark any item as protected. A protected item stays with the player no matter what — it cannot be dropped, lost on death, placed, used, or moved into external storage.
The protection flag is stored in the item's Persistent Data Container (PDC), so it survives server restarts and transfers between inventories.
Commands
| Command |
Permission |
Description |
/protected add |
protecteditems.use |
Mark the held item as protected |
/protected remove |
protecteditems.use |
Remove protection from the held item |
/protected check |
protecteditems.use |
Check whether the held item is protected |
/protected list |
protecteditems.use |
List your own protected items |
/protected list <player> |
protecteditems.admin |
List protected items in another player's inventory |
/protected listall |
protecteditems.admin |
List all protected items across the server |
All commands require the item to be in the player's main hand (except list and listall). Commands can only be executed by players, not from the console.
Permissions
| Permission |
Default |
Description |
protecteditems.use |
op |
Allows using the /protected command |
protecteditems.admin |
op |
Allows /protected list <player> and /protected listall |
protecteditems.bypass-store |
op |
Allows placing protected items into any container |
Protected Item Behavior
Drop
Attempts to drop a protected item are cancelled. The player receives a message.
Death
Protected items are not dropped on death. They are restored to the player's inventory upon respawn. If there is not enough space, they are dropped near the player.
Block Placement
Placing a protected item as a block is cancelled.
Right-Click Use
Right-click usage of consumable/throwable items (eggs, snowballs, spawn eggs, etc.) is cancelled when the item is protected.
Containers
Protected items cannot be moved into regular containers (chests, barrels, hoppers, etc.). However, they can be stored in ender chests.
Players with the protecteditems.bypass-store permission can place protected items into any container (useful for distributing items to other players).
Item Frames
Protected items cannot be placed into item frames.
Localization
The plugin supports English and Russian. The language is selected automatically based on each player's Minecraft client language setting. If the player's locale is not supported, English is used as the fallback.
评论 0
登录后参与评分
还没有评论,来抢沙发吧