禁止村民交易
概述
DisableVillagerTrade 是一款轻量级的模组/插件,旨在仅阻止与村民的交易互动,同时保留与其他非玩家角色(NPC)的交互。这确保了你的服务器拥有平衡且沉浸式的游戏体验。
现已支持多个平台!
? 支持的平台
| 平台 |
Minecraft 版本 |
状态 |
| Bukkit/Spigot/Paper |
1.14 - 1.21.11+ |
✅ 完全支持 |
| Fabric |
1.21.11 |
✅ 完全支持 |
| Forge |
1.21.11 |
✅ 完全支持 |
| NeoForge |
1.21.11 |
✅ 完全支持 |
| Quilt |
1.21.11 |
✅ 使用 Fabric 版本 |
✨ 主要功能
- 自定义交互消息 - 个性化交互消息以匹配服务器的语气和风格,增强玩家的参与度。
- 切换交互消息 - 根据服务器偏好轻松启用或禁用交互消息。
- 按世界/维度禁用 - 通过在世界/维度级别启用或禁用该插件来微调游戏动态,从而对交易功能进行精确控制。
- 绕过权限 - 允许拥有
disabletrade.bypass 权限的管理员与村民交易。
- 智能职业检测 - 没有职业(NONE)的村民仍然可以被交互。
- 自动更新检查器 - 当有新版本可用时收到通知。
- 管理命令 - 在所有平台上使用简单的命令管理该模组(
/dvt reload|status|help)。
? 安装
Bukkit/Spigot/Paper
- 下载
DisableVillagerTrade-Bukkit-x.x.x.jar
- 放入服务器的
plugins 文件夹
- 重启服务器
- 在
plugins/DisableVillagerTrade/config.yml 中进行配置
Fabric
- 下载
DisableVillagerTrade-Fabric-x.x.x.jar
- 确保已安装 Fabric Loader 和 Fabric API
- 放入
mods 文件夹
- 在
config/disablevillagertrade.json 中进行配置
Forge / NeoForge
- 下载适合你加载器的 JAR 文件
- 放入
mods 文件夹
- 在
config/disablevillagertrade-server.toml 中进行配置
⚙️ 配置 (Bukkit)
# 消息设置
message:
enabled: true
text: "&c你不能在这个服务器上与村民交易。"
# 允许交易的 миров
disabled-worlds:
- example-world
? 命令
所有平台都支持 /dvt 命令。Bukkit 额外注册了 /disabletrade 和 /tradetoggle 作为别名。
Bukkit
| 命令 |
描述 |
权限 |
/disabletrade reload |
重新加载插件配置 |
disabletrade.admin |
/disabletrade status |
显示插件状态和设置 |
disabletrade.admin |
/disabletrade toggle [player] |
检查绕过权限状态 |
disabletrade.admin |
/disabletrade help |
显示帮助消息 |
disabletrade.admin |
别名: /dvt, /tradetoggle
Fabric / Forge / NeoForge
| 命令 |
描述 |
所需权限 |
/dvt reload |
重新加载模组配置 |
OP 等级 2 |
/dvt status |
显示模组状态和设置 |
OP 等级 2 |
/dvt help |
显示帮助消息 |
OP 等级 2 |
? 权限
| 权限 |
描述 |
默认值 |
disabletrade.admin |
访问所有管理命令 |
OP |
disabletrade.bypass |
允许玩家绕过交易限制 |
OP |
disabletrade.update |
加入时接收更新通知 |
OP |
注意: 在 Fabric 上,权限通过 Fabric Permissions API 工作,或者回退到 OP 等级 2+。在 Forge/NeoForge 上,需要 OP 等级 2+。
? 支持的版本
- Minecraft: 1.14 - 1.21.11+(因平台而异)
- Java: 21+
? 链接
? 许可证
本项目基于 MIT License 开源。
Disable Villager Trade
Overview
DisableVillagerTrade is a lightweight mod/plugin crafted to block trading interactions exclusively with villagers while preserving interactions with other non-player characters (NPCs). This ensures a balanced and immersive gameplay experience on your server.
Now available for multiple platforms!
? Supported Platforms
| Platform |
Minecraft Version |
Status |
| Bukkit/Spigot/Paper |
1.14 - 1.21.11+ |
✅ Full Support |
| Fabric |
1.21.11 |
✅ Full Support |
| Forge |
1.21.11 |
✅ Full Support |
| NeoForge |
1.21.11 |
✅ Full Support |
| Quilt |
1.21.11 |
✅ Use Fabric version |
✨ Key Features
- Custom Interaction Messages - Personalize interaction messages to match your server's tone and style, enhancing player engagement.
- Toggle Interaction Messages - Easily enable or disable interaction messages according to server preferences.
- World/Dimension-Specific Disablement - Fine-tune gameplay dynamics by enabling or disabling the plugin on a per-world/dimension basis, granting precise control over trading functionalities.
- Bypass Permission - Allow staff to trade with
disabletrade.bypass permission.
- Smart Profession Detection - Villagers with no profession (NONE) can still be interacted with.
- Automatic Update Checker - Get notified when a new version is available.
- Admin Commands - Manage the mod with simple commands on all platforms (
/dvt reload|status|help).
? Installation
Bukkit/Spigot/Paper
- Download
DisableVillagerTrade-Bukkit-x.x.x.jar
- Place in your server's
plugins folder
- Restart your server
- Configure in
plugins/DisableVillagerTrade/config.yml
Fabric
- Download
DisableVillagerTrade-Fabric-x.x.x.jar
- Ensure you have Fabric Loader and Fabric API installed
- Place in your
mods folder
- Configure in
config/disablevillagertrade.json
Forge / NeoForge
- Download the appropriate JAR for your mod loader
- Place in your
mods folder
- Configure in
config/disablevillagertrade-server.toml
⚙️ Configuration (Bukkit)
# Message settings
message:
enabled: true
text: "&cYou can't trade with villagers on this server."
# Worlds where trading is ALLOWED
disabled-worlds:
- example-world
? Commands
All platforms support the /dvt command. Bukkit additionally registers /disabletrade and /tradetoggle as aliases.
Bukkit
| Command |
Description |
Permission |
/disabletrade reload |
Reload the plugin configuration |
disabletrade.admin |
/disabletrade status |
Show plugin status and settings |
disabletrade.admin |
/disabletrade toggle [player] |
Check bypass permission status |
disabletrade.admin |
/disabletrade help |
Show help message |
disabletrade.admin |
Aliases: /dvt, /tradetoggle
Fabric / Forge / NeoForge
| Command |
Description |
Required Permission |
/dvt reload |
Reload the mod configuration |
OP level 2 |
/dvt status |
Show mod status and settings |
OP level 2 |
/dvt help |
Show help message |
OP level 2 |
? Permissions
| Permission |
Description |
Default |
disabletrade.admin |
Access to all admin commands |
OP |
disabletrade.bypass |
Allows the player to bypass trade block |
OP |
disabletrade.update |
Receives update notifications on join |
OP |
Note: On Fabric, permissions work with Fabric Permissions API or fall back to OP level 2+. On Forge/NeoForge, OP level 2+ is required.
? Supported Versions
- Minecraft: 1.14 - 1.21.11+ (varies by platform)
- Java: 21+
? Links
? License
This project is open source under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧