CTF Buddy 是你在 Minecraft 中举办夺旗(Capture The Flag)风格竞技活动的助手。
功能
自定义旗帜
CTF Buddy 并没有规定你必须使用特定的物品作为旗帜。CTF Buddy 通过向物品添加元数据来追踪它们,然后监听涉及该物品的各种事件。这意味着你手中的任何物品都可以成为旗帜。
想要实体代替吗?CTF Buddy 也能做到!插件使用相同的元数据系统来追踪标记过的实体,因此你可以使用你喜欢的村民或苦力怕作为旗帜。

旗帜可见性
旗帜以及携带旗帜的任何实体都会获得发光效果,以便于发现。此外,手持旗帜物品的实体会将其头盔槽替换为旗帜,使其更容易被发现(如果玩家之前戴着头盔,它会被安全地放入玩家的背包中)。

默认情况下,插件会每分钟发射烟火粒子以帮助玩家找到旗帜。如果需要,可以禁用此功能。
旗帜持久性
当物品被标记为旗帜时,CTF Buddy 会采取措施确保旗帜不易被破坏。只有创造模式玩家可以伤害旗帜实体,且它们不会消失。插件还会默认防止将旗帜带入末地,以免它们轻易掉入虚空丢失。

登出保护
有没有遇到过玩家拿着旗帜退出游戏的情况?或者把实体放进船里然后带着它退出?CTF Buddy 可以缓解这些问题。当玩家持有旗帜退出游戏时,旗帜可以掉落至其脚边,或者如果你喜欢“肢解”玩家的方式,也可以直接处理掉该玩家。如果你喜欢实体风格的旗帜,这些实体足够智能,会在玩家试图带着它们退出游戏时从载具中弹出。
日志记录
需要弄清楚旗帜发生了什么吗?每当玩家拾起或丢弃旗帜物品时,CTF Buddy 都会记录到服务器控制台。你可以利用这一点来追踪活动结束时的获胜者,或在需要时为玩家提供提示。
用法
/makeflag
CTF Buddy 只有一个你需要知道的命令:/makeflag。该命令的权限为 ctfbuddy.makeflag,默认授予管理员(ops)。
/makeflag 有两个子命令:item 和 entity。
item
/makeflag item 会将你手中的物品标记为旗帜。这将添加必要的追踪元数据,以便插件后续找到该物品,同时添加其他元数据以防止旗帜被破坏。
entity
/makeflag entity 会将你注视的实体标记为旗帜。这将向实体添加必要的元数据以将其追踪为旗帜,同时添加其他元数据以防止实体死亡。
结束活动
CTF Buddy 不定义如何结束活动;这由活动组织者决定。当你准备好处理旗帜时,可以使用创造模式销毁它们。创造模式背包中的销毁物品槽可以移除旗帜物品,而旗帜实体可以像普通实体一样被创造模式玩家伤害。如果你想有一个更具戏剧性的结局,也可以使用最近的虚空。
兼容性
CTF Buddy 专为运行 Paper 或其分支的 Minecraft: Java Edition 构建。其他版本的 Minecraft 可能可用,但未经测试。(如果有新版本发布,请告诉我测试结果!)。Paper 的上游项目(Bukkit 和 Spigot)无法工作,因为本插件利用了 Paper 提供的扩展 API。
Geyser 有些棘手,因为基岩版缺乏重要功能。
基岩版不支持发光效果,
这可能会让那些玩家更难定位旗帜。此外,
基岩版也不支持实体头部放置方块,
这意味着携带旗帜的实体上的旗帜可能不可见。
bStats
本插件使用了 bStats,这是大多数插件和服务器软件常用的服务,用于跟踪基本统计数据。你可以通过编辑服务器首次启动时生成的 plugins/bStats/config.yml 文件,选择退出所有插件和你服务器软件的 bStats。
CTF Buddy is your assistant for Capture The Flag style competition events in Minecraft.
Features
Custom Flags
CTF Buddy doesn't have a prescribed flag item you have to use. CTF Buddy keeps track of items by
adding a piece of metadata to the item, then listens for events involving that item. This means
anything that you can hold in your hand can be a flag.
Want an entity instead? CTF Buddy can do that too! The plugin uses the same metadata system to
allow keeping track of marked entities, so you can use your favorite Villager or Creeper as a flag.

Flag Visibility
Flags, and any entity carrying a flag, are given a glowing effect to make them easier to spot.
Additionally, entities holding a flag item will have their helmet slot replaced with the flag to
make them easy to spot (if a player had a helmet before, it will be safely placed in their
inventory).

By default, the plugin will shoot off firework particles every minute to help players find the
flags. This can be disabled if needed.
Flag Persistence
CTF Buddy takes measures when an item is marked as a flag to make sure it is not easy for a flag
to be destroyed. Flag entities can only be harmed by creative mode players and will not despawn.
The plugin also prevents bringing flags to the end by default, where they could easily be lost to
the void.

Logout Protection
Ever have a player log out with a flag in their inventory? Or put an entity in a boat and logged
out with it? CTF Buddy mitigates these issues. When a player logs out with a flag in their
inventory, the flag can be dropped at their feet, or the player butchered if that's your cup of
tea. If you like the entity style of flags, they are smart enough to eject themselves from a
vehicle if the player tries to log out with them.
Logging
Need to figure out what happened to a flag? CTF Buddy logs to the server console whenever a player
picks up or drops a flag item. You can use this to track down who won at the end of an event,
or use to give players hints if needed.
Usage
/makeflag
CTF Buddy has only one command you need to know: /makeflag. Access to
this command is granted by the permission ctfbuddy.makeflag, which is granted to ops by default.
/makeflag has two subcommands: item and entity.
item
/makeflag item will mark the item in your hand as a flag. This will add the needed tracking
metadata for the plugin to find the item later, along with some other metadata to prevent
destruction of the flag.
entity
/makeflag entity will mark the entity you are looking at as a flag. This will add the needed
metadata to the entity to track it as a flag, along with some other metadata to prevent death of
the entity.
Ending an event
CTF Buddy does not define how to end an event; that is left up to the event organizer. When you
are ready to dispose of the flags, they can be destroyed using creative mode. The destroy item
slot in the creative inventory will get rid of flag items, and flag entities can be damaged by
creative players like normal. The nearest void can also be used, if you want a more dramatic ending.
Compatibility
CTF Buddy was built for Minecraft: Java Edition, running Paper or one of its
forks. Other versions of Minecraft may work, but are untested. (If a newer version has come out,
please let me know how it goes!). Upstreams of Paper (Bukkit & Spigot) will not work, as this
plugin utilizes the expanded API provided by Paper.
Geyser is a bit problematic, due to a lack of important features in Bedrock Edition.
Bedrock does not support glowing,
which may make locating the flag harder for those players. Additionally,
Bedrock also does not support blocks on entity heads,
meaning the flag may not be visible on entities carrying them.
bStats
This plugin uses bStats, the common service used by most plugins and server
software, to keep track of basic stats. You can opt out of bStats for all plugins and your server
software by editing the plugins/bStats/config.yml file that is generated on the server's first
launch.
评论 0
登录后参与评分
还没有评论,来抢沙发吧