Skirmish
一件逃生工具与一套战斗锁定机制,适用于战利品可被掠夺的服务器。
免费且开源。支持 Paper 1.21+。无依赖项、无数据库、无经济挂钩。
两项机制唯有结合才有意义。单独的战斗锁定是一种惩罚;单独的逃生工具则意味着永远无法被抓住。两者结合传达了一个明确的信号:你或许无法逃离一场战斗,但你始终可以试图在其中生存下来。
闪烁羽毛(Blink Feather)
右键点击即可瞬移至二十格之外——绕过柱子、登上屋顶、跨越深渊。
它无法穿越墙壁。 射线会在第一个身体无法占据的方块处停止,因此无论你是否运行了任何保护插件,它都绝不可能将某人传送到基地、金库或上锁的房间内部——这是几何原理,而非权限检查。
它选择拒绝而非让你死亡。 如果瞄准一处没有落脚点的深渊,闪烁会被取消,而不是让你直接坠落二十格。一种会导致玩家死亡的移动工具是没人敢在只有四颗心时使用,而这恰恰是唯一需要它的时刻。
拒绝操作不消耗冷却时间。 没有着陆就没有冷却时间的消耗。如果一个工具在激活失败时仍会扣除冷却时间,那它就在玩家最需要它的时候失效了。
它会将你送达尽可能远的位置,而不会多进一格。 如果你注视十八格外的屋顶,你就会落在该屋顶上。
两端都会产生烟雾粒子并播放音效。 这是刻意为之:追击者必须能够追踪你的踪迹。一段无人能追踪的逃跑只是消失,而追逐才是重点所在。
战斗锁定(Combat Lock)
两名玩家之间的任何一次命中都会使双方进入战斗状态,持续时间可在配置中设定。在此期间,末影珍珠、 chorus fruit(紫颂果)和传送命令均会被拒绝,并且动作栏会显示剩余秒数——对于看不到计时器的玩家而言,被拒绝的传送会表现为命令失效,而非规则限制。
闪烁羽毛不受此限制,但这并非漏洞:它的范围是有限的,无法穿越墙壁,两端会留下可见的痕迹,并且会消耗冷却时间。这些特性是末影珍珠链所不具备的。
默认情况下,生物不会将你标记为战斗状态。 在一个充满敌对生物的服务器上,这将导致近乎永久的锁定——这比它修复的那个 bug 更糟糕。请仅在首领战或袭击事件中刻意开启此功能。
命令
/skirmish give [player] — 发放一枚闪烁羽毛
/skirmish reload — 重新读取配置文件
权限:skirmish.admin(用于上述两个命令,默认为 OP),skirmish.bypass(允许在战斗状态下自由传送,默认为 false)。
配置
范围默认为 20 格,冷却时间为 5 秒,战斗窗口为 15 秒。
根据竞技场的大小来设定范围,而非凭感觉。 闪烁应能跨越大部分战斗空间,但绝不能覆盖整个空间。在宽度为 26 格的房间中,20 格的距离足以让你脱离对手的攻击范围,同时让追击者仍处于同一场战斗中。如果将其设置得比竞技场还宽,这项工具就不再是一个决策选项了。
安装
将 jar 文件放入 plugins/ 目录,重启服务器,然后运行 /skirmish give。
源码
关于闪烁落点位置的决策逻辑位于 BlinkPlan 类中,该类完全不接触任何 Bukkit 类型,并由其专属测试套件覆盖。这种分离使得安全性属性——无法穿过墙壁、拒绝虚空跳跃、永远不会将你卡在方块内——能够通过离线证明得到验证,而非仅仅在注释中声明。测试用例编写得如此严格,以至于任何空操作实现都会导致测试失败。
GPL-3.0-or-later.
Skirmish
An escape tool and a combat lock, for servers where loot can be taken.
Free and open source. Paper 1.21+. No dependencies, no database, no economy hook.
Two mechanics that only make sense together. A combat lock on its own is a punishment. An escape tool on its own is a way to never be caught. Together they say something specific: you may not leave a fight, but you may always try to survive one.
The Blink Feather
Right-click and you are twenty blocks away — behind the pillar, on the roof, across the ravine.
It cannot cross a wall. The ray stops at the first block a body cannot occupy, so it can never put somebody inside a base, a vault or a locked room — regardless of what protection plugin you run, or whether you run one at all. This is geometry, not a permission check.
It refuses instead of killing you. Aim across a ravine and there is no floor within reach, so the blink is declined rather than dropping you twenty blocks. A movement tool that can kill you is one nobody presses at four hearts, which is the only moment it is for.
A refusal costs nothing. No landing means no cooldown spent. A tool that eats its cooldown on a failed activation fails at exactly the moment somebody needed it.
It lands you as far as it can reach, not one step in. Look at a rooftop eighteen blocks off and you arrive on the rooftop.
Both ends draw a puff and play a note. Deliberate: a pursuer has to be able to follow. An escape nobody can track is a disappearance, and the chase is the point.
The combat lock
Any hit between two players puts both in combat for a configurable window. Ender pearls, chorus fruit and teleport commands are refused while tagged, and an action bar shows the seconds remaining — a player who cannot see the timer experiences a refused teleport as a broken command rather than as a rule.
The feather is exempt, and that is not a hole: it is bounded by its range, it cannot cross a wall, it leaves a visible trail at both ends, and it costs a cooldown. None of that is true of a pearl chain.
Mobs do not tag you by default. On a server full of hostile mobs that would be a near-permanent lock — a worse bug than the one it fixes. Turn it on deliberately for boss or raid events.
Commands
/skirmish give [player] — mint a Blink Feather
/skirmish reload — re-read the config
Permissions: skirmish.admin for both (default op), skirmish.bypass to teleport freely while in combat (default false).
Configuration
Range defaults to 20 blocks, cooldown to 5 seconds, combat window to 15 seconds.
Pick the range against your arenas, not against a feeling. The blink should cross most of a fighting space and never the whole of it. At 20 blocks in a 26-wide room, an escape moves you out of reach while leaving your pursuer in the same fight. Set it wider than your arenas and the tool stops being a decision.
Install
Drop the jar into plugins/, restart, and run /skirmish give.
Source
The decision about where a blink lands lives in BlinkPlan, which touches no Bukkit type at all and is covered by its own test suite. That split is why the safety properties — cannot pass a wall, refuses over a void, never lands you inside a block — are proven offline rather than asserted in a comment. The tests are written so a no-op implementation fails them.
GPL-3.0-or-later.
评论 0
登录后参与评分
还没有评论,来抢沙发吧