发现
第一个打开包含已追踪护甲纹饰的天然生成箱子的玩家将成为该纹饰的发现者。该纹饰将从箱子中移除,并直接放入玩家的物品栏。如果物品栏已满,纹饰将掉落在其脚下。服务器将广播此发现消息。
如果箱子中包含一个已被发现且为独占的纹饰,无论谁打开它,该纹饰都将被静默地从箱子中移除。没有人会获得它。
如果一个纹饰已公开,它将保留在箱子中,任何人都可以拿走。
尚未发现的纹饰将交给第一个打开包含该纹饰的箱子的玩家。每个纹饰只能有一个发现者。
默认独占
每个纹饰在被发现的瞬间即成为独占纹饰。无需任何配置或命令。发现者是唯一可以持有、找到或复制该纹饰的玩家,直到他们选择将其公开或分享。
允许的玩家(25 秒掉落转移)
如果独占纹饰的发现者将其丢弃在地上,并且另一名玩家在 25 秒内捡起它,则该玩家永久成为该纹饰的允许玩家。
允许玩家拥有与发现者相同的访问权限。他们可以从地上捡起纹饰,在天然生成的箱子中找到它,并在合成台中复制它。
如果非允许玩家在 25 秒窗口期外尝试从地上捡起独占纹饰,拾取操作将被阻止,物品会被移除。
发现者和所有允许玩家的数据都会永久保存,并在服务器重启后持久存在。
公开纹饰
/ott release <trim> 命令允许发现者将独占纹饰公开给所有人。一旦公开,服务器上的所有玩家都可以正常地找到、捡起和复制该纹饰。
公开命令默认禁用。必须在 config.yml 中将 release-command-enabled 设置为 true 以启用它。当禁用时,运行该命令的任何玩家都会收到消息:此命令已禁用!
启用后,该命令有两个要求:
- 玩家必须是指定纹饰的发现者。
- 玩家的物品栏中必须包含指定的纹饰。
如果未满足任一要求,命令将失败并显示相应消息。
服务器将广播纹饰被公开的消息。
保持纹饰独占
/ott keep <trim> 命令允许发现者将之前已公开的纹饰重新设为独占。一旦重新设为独占,没有其他玩家(除了允许玩家)可以找到、捡起或复制该纹饰。
只有发现者可以使用此命令。如果纹饰已经是独占状态,玩家会收到通知,且不会发生任何更改。
服务器将广播纹饰再次变为独占的消息。
玩家放置的容器
由玩家放置的容器(箱子、 barrels、潜影盒以及任何其他容器方块)不受此插件影响。存储在玩家放置的容器内的纹饰完全不受干扰。玩家可以安全地将他们的纹饰存储在他们放置的任何容器中。
只有天然生成的容器(在结构、地牢、神庙等中发现)中的纹饰才会被插件移除或管理。
双箱得到完全支持。在确定是否为玩家放置的双箱时,会检查双箱的两面。
战利品生成
独占纹饰会在生成过程中从战利品表中移除。这防止了独占纹饰出现在世界任何新生成的战利品中。
公共纹饰和未发现的纹饰不受影响,并按正常方式在战利品中生成。
合成与复制
独占纹饰在合成台上的原版复制功能被阻止。只有发现者和允许玩家可以复制独占纹饰。
如果非允许玩家尝试复制独占纹饰,合成结果将被移除,他们会收到一条消息说明该纹饰的所有者。
公共纹饰可以由任何人在合成台上按正常方式复制。
服务器广播
以下情况会发送全服广播:
- 玩家首次发现纹饰。
- 玩家使用
/ott keep 使纹饰再次变为独占。
- 玩家使用
/ott release 将纹饰公开给公众。
命令
所有命令都可以使用 /onetimetrims 或别名 /ott 运行。
| 命令 |
描述 |
/ott |
显示包含所有可用命令的帮助菜单。 |
/ott reload |
重新加载配置文件和数据文件。需要 onetimetrims.admin 权限。 |
/ott status |
显示所有受追踪纹饰的列表及其当前状态、发现者名称和允许玩家的数量。还显示未发现、独占和公开纹饰的总数。 |
/ott status <trim> |
显示特定纹饰的详细信息,包括状态、发现者名称和所有允许玩家名称。 |
/ott keep <trim> |
将之前已公开的纹饰重新设为独占。只有发现者可以使用此命令。 |
/ott release <trim> |
将独占纹饰公开给公众。只有发现者可以使用此命令。需要将纹饰放在玩家物品栏中。默认在配置中禁用。 |
所有子命令和纹饰名称都支持制表符补全,输入时会进行过滤。
权限
| 权限 |
描述 |
默认值 |
onetimetrims.admin |
允许重新加载插件配置和数据。 |
op |
onetimetrims.use |
允许玩家与纹饰系统交互,使用 keep、release 和 status 命令。 |
true (所有玩家) |
配置 (config.yml)
如果缺失,则在服务器首次启动时自动创建。
tracked-trims
插件追踪的所有护甲纹饰键的列表。默认包含全部 18 种原版护甲纹饰:
coast, dune, eye, host, raiser, rib, sentry, shaper, silence, snout, spire, tide, vex, ward, wayfinder, wild, bolt, flow.
从列表中移除某个装饰纹样以完全停止追踪它。未被追踪的纹样表现为原版正常纹样。
release-command-enabled
控制是否可以使用 /ott release 命令。默认设置为 false。当设置为 false 时,任何运行 /ott release 的玩家都会收到消息:此命令已禁用!
messages
所有面向玩家的消息均可完全自定义,并支持 & 颜色代码。以下消息键可用:
| 键 |
出现时机 |
trim-discovered |
发送给首次发现某个纹样的玩家。支持 %trim% 占位符。 |
trim-kept |
在发现者使该纹样再次变为独占时发送。支持 %trim% 占位符。 |
trim-released |
在发现者将该纹样公开给大众时发送。支持 %trim% 占位符。 |
trim-shared |
在玩家通过 25 秒掉落转移成为允许拾取者时发送。支持 %trim% 占位符。 |
no-permission |
当玩家缺乏所需权限时发送。 |
config-reloaded |
在配置成功重载后发送。 |
trim-already-found |
当玩家遇到一个已被发现的纹样时发送。支持 %trim% 和 %player% 占位符。 |
release-disabled |
当玩家在配置中禁用了 /ott release 时尝试使用该命令发送。 |
not-discoverer |
当玩家尝试对非自己发现的纹样使用 /ott keep 或 /ott release 时发送。 |
must-have-trim |
当玩家尝试使用 /ott release 但背包中没有该纹样时发送。支持 %trim% 占位符。 |
already-exclusive |
当玩家尝试对已经是独占状态的纹样使用 /ott keep 时发送。支持 %trim% 占位符。 |
already-public |
当玩家尝试对已经是公开状态的纹样使用 /ott release 时发送。支持 %trim% 占位符。 |
数据存储 (data.yml)
如果服务器首次启动时文件缺失则自动创建。存储所有持久的插件数据。
对于每个被追踪的纹样,保存以下内容:
- 状态 — UNDISCOVERED(未被发现)、EXCLUSIVE(独占)或 PUBLIC(公开)。
- 发现者 UUID — 首次找到该纹样的玩家的 UUID。
- 发现者名称 — 首次找到该纹样的玩家的用户名。
- 允许的玩家 — 一个映射表,将玩家 UUID 映射到玩家名称,包含所有通过 25 秒掉落转移获得访问权限的玩家。
每当发生以下情况时,数据会立即保存:
- 发现了一个纹样。
- 纹样状态发生改变(保持独占或公开)。
- 通过 25 秒掉落转移添加了允许的玩家。
- 插件被禁用或服务器关闭。
纹样状态
| 状态 |
含义 |
| UNDISCOVERED |
尚无玩家发现此纹样。它可以像原版一样正常出现在自然生成的箱子中。 |
| EXCLUSIVE |
有玩家发现了此纹样。它已从所有自然生成的箱子和战利品生成中移除。只有发现者和允许的玩家才能拾取、找到并复制它。这是发现后的默认状态。 |
| PUBLIC |
发现者已将此纹样公开。所有玩家都可以像在箱子中找到那样正常拾取并复制它。 |
Trim Discovery
The first player to open a naturally generated chest containing a tracked armor trim becomes the discoverer of that trim. The trim is removed from the chest and placed directly into the player's inventory. If their inventory is full, the trim is dropped at their feet. A server-wide broadcast announces the discovery.
If a chest contains a trim that has already been discovered and is exclusive, the trim is silently removed from the chest regardless of who opens it. No one receives it.
If a trim has been released to the public, it remains in the chest and can be taken by anyone.
Trims that are not yet discovered are given to the first player who opens a chest containing one. Only one player can ever be the discoverer of each trim.
Exclusive by Default
Every trim is exclusive the moment it is discovered. No configuration or command is needed. The discoverer is the only player who can hold, find, or duplicate that trim until they choose to release it or share it.
Allowed Players (25-Second Drop Transfer)
If the discoverer of an exclusive trim drops it on the ground and another player picks it up within 25 seconds, that player permanently becomes an allowed player for that trim.
Allowed players have the same access as the discoverer. They can pick up the trim from the ground, find it in naturally generated chests, and duplicate it at a crafting table.
If a non-allowed player attempts to pick up an exclusive trim from the ground outside the 25-second window, the pickup is blocked and the item is removed.
Both the discoverer and all allowed players are saved permanently and persist across server restarts.
Releasing a Trim
The /ott release <trim> command allows the discoverer to release an exclusive trim to the public. Once released, all players on the server can find, pick up, and duplicate that trim normally.
The release command is disabled by default. It must be enabled in config.yml by setting release-command-enabled to true. When disabled, any player who runs the command receives the message: This Command Is Disabled!
When enabled, the command has two requirements:
- The player must be the discoverer of the specified trim.
- The player must have the specified trim in their inventory.
If either requirement is not met, the command fails with an appropriate message.
A server-wide broadcast announces when a trim is released.
Keeping a Trim Exclusive
The /ott keep <trim> command allows the discoverer to set a previously released trim back to exclusive. Once set back to exclusive, no other players (except allowed players) can find, pick up, or duplicate that trim.
Only the discoverer can use this command. If the trim is already exclusive, the player is informed and no change occurs.
A server-wide broadcast announces when a trim is made exclusive again.
Player-Placed Containers
Containers placed by players (chests, barrels, shulker boxes, and any other container block) are never affected by this plugin. Trims stored inside player-placed containers are left completely alone. Players can safely store their trims in any container they place.
Only naturally generated containers (found in structures, dungeons, temples, etc.) have trims removed or managed by the plugin.
Double chests are fully supported. Both sides of a double chest are checked when determining whether it was player-placed.
Loot Generation
Exclusive trims are removed from loot tables during generation. This prevents exclusive trims from appearing in any newly generated loot anywhere in the world.
Public and undiscovered trims are unaffected and generate in loot normally.
Crafting and Duplication
Vanilla trim duplication at a crafting table is blocked for exclusive trims. Only the discoverer and allowed players can duplicate an exclusive trim.
If a non-allowed player attempts to duplicate an exclusive trim, the crafting result is removed and they receive a message stating who owns the trim.
Public trims can be duplicated by anyone at a crafting table as normal.
Server Broadcasts
A server-wide broadcast is sent when:
- A player discovers a trim for the first time.
- A player makes a trim exclusive again using
/ott keep.
- A player releases a trim to the public using
/ott release.
Commands
All commands can be run using /onetimetrims or the alias /ott.
| Command |
Description |
/ott |
Displays the help menu with all available commands. |
/ott reload |
Reloads the configuration file and data file. Requires the onetimetrims.admin permission. |
/ott status |
Displays a list of all tracked trims with their current status, discoverer name, and count of allowed players. Also shows totals for undiscovered, exclusive, and public trims. |
/ott status <trim> |
Displays detailed information for a specific trim including status, discoverer name, and all allowed player names. |
/ott keep <trim> |
Sets a previously released trim back to exclusive. Only the discoverer can use this. |
/ott release <trim> |
Releases an exclusive trim to the public. Only the discoverer can use this. Requires the trim to be in the player's inventory. Disabled by default in config. |
All subcommands and trim names support tab completion that filters as you type.
Permissions
| Permission |
Description |
Default |
onetimetrims.admin |
Allows reloading the plugin configuration and data. |
op |
onetimetrims.use |
Allows players to interact with the trim system, use keep, release, and status commands. |
true (all players) |
Configuration (config.yml)
Auto-created on first server start if missing.
tracked-trims
A list of all armor trim keys the plugin tracks. All 18 vanilla armor trims are included by default:
coast, dune, eye, host, raiser, rib, sentry, shaper, silence, snout, spire, tide, vex, ward, wayfinder, wild, bolt, flow.
Remove a trim from this list to stop tracking it entirely. Untracked trims behave as normal vanilla trims.
release-command-enabled
Controls whether the /ott release command can be used. Set to false by default. When set to false, any player who runs /ott release receives the message: This Command Is Disabled!
messages
All player-facing messages are fully customizable and support & color codes. The following message keys are available:
| Key |
When It Appears |
trim-discovered |
Sent to the player who discovers a trim for the first time. Supports %trim% placeholder. |
trim-kept |
Sent to the discoverer when they make a trim exclusive again. Supports %trim% placeholder. |
trim-released |
Sent to the discoverer when they release a trim to the public. Supports %trim% placeholder. |
trim-shared |
Sent to a player when they become an allowed player via the 25-second drop transfer. Supports %trim% placeholder. |
no-permission |
Sent when a player lacks the required permission. |
config-reloaded |
Sent after a successful configuration reload. |
trim-already-found |
Sent when a player encounters a trim that has already been discovered. Supports %trim% and %player% placeholders. |
release-disabled |
Sent when a player tries to use /ott release while it is disabled in config. |
not-discoverer |
Sent when a player tries to use /ott keep or /ott release on a trim they did not discover. |
must-have-trim |
Sent when a player tries to use /ott release without having the trim in their inventory. Supports %trim% placeholder. |
already-exclusive |
Sent when a player tries to use /ott keep on a trim that is already exclusive. Supports %trim% placeholder. |
already-public |
Sent when a player tries to use /ott release on a trim that is already public. Supports %trim% placeholder. |
Data Storage (data.yml)
Auto-created on first server start if missing. Stores all persistent plugin data.
For each tracked trim, the following is saved:
- Status — UNDISCOVERED, EXCLUSIVE, or PUBLIC.
- Discoverer UUID — The UUID of the player who first found the trim.
- Discoverer Name — The username of the player who first found the trim.
- Allowed Players — A map of player UUIDs to player names for every player who gained access via the 25-second drop transfer.
Data is saved immediately whenever:
- A trim is discovered.
- A trim status changes (keep or release).
- An allowed player is added via the 25-second drop transfer.
- The plugin is disabled or the server shuts down.
Trim Statuses
| Status |
Meaning |
| UNDISCOVERED |
No player has found this trim yet. It can appear normally in naturally generated chests. |
| EXCLUSIVE |
A player has discovered this trim. It is removed from all naturally generated chests and loot generation. Only the discoverer and allowed players can pick it up, find it, and duplicate it. This is the default status after discovery. |
| PUBLIC |
The discoverer released this trim. All players can find it in chests, pick it up, and duplicate it normally. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧