Paper 插件,通过锁定村民在 UI 打开后的交易内容,防止村民垄断。
测试版本
原生支持:1.21.x
兼容运行:1.21.x, 1.20.6 (Folia)
(如果你发现它在其他版本上也能运行,请通过 Discord 私信 Lupancham,并告知具体版本和服务端软件 :> )
为什么我需要这个?
好问题!问问自己,限制对服务器经济构成潜在威胁的因素是否是最佳选择?如果是的话,这个插件可能适合你,因为它允许你阻止村民重新刷取交易!
它是如何工作的?
它会检查村民的经验值是否少于 1,如果是,则给予该村民 1 点经验值以锁定其交易内容(当玩家打开其菜单时)。为了让服务器主线程得以释放,此逻辑将在独立线程而非服务器主线程上运行;你可以在下方的配置文件中切换此设置。
config.yml
# VillagerTradeLockPlugin 配置文件
# 如果为 true,插件将在独立线程上异步执行经验检查逻辑。
# 如果为 false,插件将在服务器主线程上执行此逻辑。
use-async-check: true
嘿!我需要你的帮助 :>
如果你恰好在这个插件在其他服务端软件或 Minecraft 版本上进行了测试,请务必私信我们,以便我将这些版本添加到支持列表中,这样其他人就能知道他们想运行的版本是否可用了 :>, <3 Disc Realms/Lupancham
Paper plugin to prevent a villager monopoly by locking what a villager trades after its UI is opened.
TESTED VERSIONS
NATIVE: 1.21.x
WORKING: 1.21.x, 1.20.6 (Folia)
(If you find out it works on another version shoot me a dm at Lupancham on discord with the version(s) and server software(s) :> )
Why do I need this?
Thats a great question! Ask yourself, would it be best to limit a potential threat to a server economy? If yes, this plugin might be for you as this plugin allows you to stop villager re-rolling!
How Does this Work?
This works by checking if a villager has less than 1 xp, if so it will give tha villager 1 xp to lock its trades when a player opens its menu. To allow the server to use its main thread, this runs on a different thread rather than the one the server uses, this can be toggled in the config which is shown below.
config.yml
# Configuration for VillagerTradeLockPlugin
# If true, the plugin will run experience-checking logic asynchronously on a separate thread.
# If false, the plugin will run this logic on the server's main thread.
use-async-check: true
Hey! I need YOUR help :>
If you happen to test this plugin on a different server software or mc version, please please please shoot us a DM so I can add those versions to the supported versions list so people can know if the version they wish to run it on works :>, <3 Disc Realms/Lupancham
评论 0
登录后参与评分
还没有评论,来抢沙发吧