
EveryoneGetsDiscount
在原版 Minecraft 中,治愈僵尸村民的奖励仅给予执行治愈操作的玩家。在多人服务器中,这意味着只有一个人能获得治愈折扣,而其他人即使参与了陷阱布置、提供了金苹果,或者仅仅是在共享交易大厅,也必须支付全价。
EveryoneGetsDiscount 解决了这个问题。当任何僵尸村民被治愈时,符合条件的在线玩家会自动获得该村民的原版治愈闲聊值(gossip values),且不会干扰任何其他游戏机制。默认情况下,所有在线玩家都有资格。服务器管理员还可以将分享范围限制为围绕被治愈村民的可配置方块半径内。执行治愈的玩家保留 Minecraft 正常的原版治愈折扣,而插件会将同类型的折扣分享给选定的在线玩家。
工作原理
插件监听僵尸村民变回村民的那一刻。此时,Minecraft 会对治愈玩家应用其正常的治愈闲聊值,插件则对其他符合条件的在线玩家应用相同的两条原版闲聊条目:
• MAJOR_POSITIVE (+20) - 主要治愈折扣。永久有效,永不衰减,单次治愈后即可达到最大值。这是贸易折扣的主要部分,并永久保留在该村民身上。
• MINOR_POSITIVE (+25) - 次要奖励,与原版应用的完全相同。以每 20 现实分钟减少 1 点的速度衰减,大约在 8 小时后完全消失。
这两个值直接取自原版自身的闲聊系统。没有人工价格降低,也没有倍数变化,只是标准的治愈折扣被共享。如果玩家在治愈前与该村民已有不同的声望,最终的交易价格仍可能在玩家之间有所不同。
功能
-
符合原版数值 - 插件使用与 Minecraft 分配给玩家自行治愈村民时完全相同的闲聊类型和单次治愈量。
-
开箱即用 - 默认半径为 -1,即与所有在线玩家分享折扣。
-
可选半径限制 - 管理员可以使用 /egd radius <blocks> 仅与在被治愈村民一定距离内的在线玩家分享折扣。
-
可选无 proximity 模式 - /egd radius -1 恢复默认行为,即只要在线即可。
-
仅影响被治愈的村民 - 其他附近的村民不受插件影响。村民之间的原版闲聊传播继续正常进行。
-
尊重取消操作 - 如果另一个插件取消了治愈转换,则不应用任何折扣。
-
治愈期间离线的玩家将错过 - 符合条件的玩家是在转换的确切时刻选择的;后来加入的玩家不会被包含在内。
-
轻量级 - 无需数据库,也无重复后台任务。
插件不触碰交易价格、商人配方或任何经济插件的数据。它只与村民闲聊系统交互,方式与原版相同。
常见问题
玩家需要靠近村民才能获得折扣吗?
默认情况下不需要。默认半径为 -1,因此任何在线玩家无论身处服务器的何处都会获得共享折扣。如果管理员设置了如 100 的半径,则只有与被治愈村民在同一世界且距离在 100 个方块以内的在线玩家才能获得共享折扣。执行治愈的玩家会获得 Minecraft 正常的原版治愈折扣。
折扣会持续永远吗?
主要组件(MAJOR_POSITIVE)是永久的,并且与原版完全匹配。一次治愈已使其达到最大值。次要奖励(MINOR_POSITIVE)会在大约 8 个现实小时内衰减,之后永久折扣仍然存在。
它会影响“村庄英雄”或袭击机制吗?
完全不会。“村庄英雄”是完成袭击后的独立药水效果。两种加成正常叠加,互不干扰。
多次治愈同一个村民能获得更多折扣吗?
不能。共享折扣不会因重复治愈而叠加额外减免。插件将使在线玩家保持在原版的单次治愈闲聊值:MAJOR_POSITIVE (+20) 和 MINOR_POSITIVE (+25)。如果玩家与该村民已有的声望相等或更高,插件不会降低它。
它与其他经济或交易插件兼容吗?
插件仅写入原版村民闲聊系统。其他插件是否读取这些数据或完全用它们自己的定价替换,取决于这些插件本身。
命令
/egd 或 /egd help - 显示插件可用的命令。
/egd radius - 显示当前的共享折扣半径。
/egd radius -1 - 与所有在线玩家分享治愈折扣。
/egd radius <blocks> - 仅与在被治愈村民同一世界且距离在该范围内的在线玩家分享治愈折扣。
/egd reload - 重新加载 config.yml。
权限:everyonegetsdiscount.admin
默认:仅限操作员
如果您有任何问题或需要支持,请加入 Discord!

EveryoneGetsDiscount
In vanilla Minecraft, curing a zombie villager rewards only the player who did the curing. On a multiplayer server, that means one person gets cure discounts while everyone else pays full price, even if they helped set up the trap, supplied the golden apple, or simply happen to share the trading hall.
EveryoneGetsDiscount fixes that. When any zombie villager is cured, eligible online players receive the same vanilla cure gossip values on that villager automatically, with no interference with any other game mechanic. By default, every online player is eligible. Server admins can also limit sharing to players within a configurable block radius around the cured villager. The curing player keeps Minecraft's normal vanilla cure discount, while the plugin shares that same type of discount with the selected online players.
How It Works
The plugin listens for the moment a zombie villager finishes transforming back into a villager. At that point, Minecraft applies its normal cure gossip to the curing player, and the plugin applies the same two vanilla gossip entries to the other eligible online players:
• MAJOR_POSITIVE (+20) - the main cure discount. Permanent, never decays, maxes out after a single cure. This is the bulk of the trading discount and stays on that villager forever.
• MINOR_POSITIVE (+25) - a secondary bonus, identical to the one vanilla applies. Fades at a rate of 1 point every 20 real-world minutes, disappearing completely after roughly 8 hours.
Both values are taken directly from vanilla's own gossip system. No artificial price reductions, no multiplier changes, just the standard cure discount, shared. Final trade prices may still differ between players if they already had different reputation with that villager before the cure.
Features
-
Vanilla-accurate values - the plugin uses the exact same gossip types and single-cure amounts Minecraft assigns when a player cures a villager themselves.
-
Works out of the box - the default radius is -1, which shares discounts with all online players.
-
Optional radius limit - admins can use /egd radius <blocks> to share only with online players within that many blocks of the cured villager.
-
Optional no-proximity mode - /egd radius -1 restores the default behavior where being online is enough.
-
Only the cured villager is affected - other nearby villagers are not touched by the plugin. Vanilla gossip propagation between villagers continues normally on its own.
-
Respects cancellation - if another plugin cancels the cure transformation, no discount is applied.
-
Players offline during the cure miss out - eligible players are selected at the exact moment of transformation; late joiners are not included.
-
Lightweight - no database and no recurring background tasks.
The plugin does not touch trade prices, merchant recipes, or any economy plugin's data. It only interacts with the villager gossip system, the same way vanilla does.
FAQ
Do players need to be near the villager to get the discount?
By default, no. The default radius is -1, so any online player receives the shared discount regardless of where they are in the server. If an admin sets a radius such as 100, only online players in the same world within 100 blocks of the cured villager receive the shared discount. The curing player receives Minecraft's normal vanilla cure discount.
Does the discount last forever?
The main component (MAJOR_POSITIVE) is permanent and matches vanilla exactly. One cure already brings it to its maximum value. A secondary bonus (MINOR_POSITIVE) fades over roughly 8 real-world hours, after which the permanent discount remains.
Does it affect Hero of the Village or raid mechanics?
Not at all. Hero of the Village is a separate potion effect from completing raids. The two bonuses stack normally and neither interferes with the other.
Does curing the same villager multiple times give more discount?
No. The shared discount does not stack extra reductions from repeated cures. The plugin keeps online players at the vanilla single-cure gossip values: MAJOR_POSITIVE (+20) and MINOR_POSITIVE (+25). If a player already has equal or higher reputation with that villager, the plugin does not lower it.
Does it work with other economy or trading plugins?
The plugin only writes to the vanilla villager gossip system. Whether other plugins read that data or replace it entirely with their own pricing is up to those plugins.
Commands
/egd or /egd help - shows the plugin's available commands.
/egd radius - shows the current shared discount radius.
/egd radius -1 - shares cure discounts with all online players.
/egd radius <blocks> - shares cure discounts only with online players in the same world within that distance from the cured villager.
/egd reload - reloads config.yml.
Permission: everyonegetsdiscount.admin
Default: operators only
Join the Discord if you have any questions or need support!
评论 0
登录后参与评分
还没有评论,来抢沙发吧