Disable villager trade on your Minecraft server! Now supports multiple 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 |
Note: Quilt is compatible with Fabric mods. Simply use the Fabric version on Quilt servers/clients.
- ๐ซ Prevent players from trading with villagers
- ๐ฌ Configurable message when trading is blocked
- ๐ Bypass permission for staff members
- ๐ Per-world/dimension exclusion configuration
- ๐จโ๐พ Villagers with no profession (unemployed) can still be interacted with
- ๐ Automatic update checker with notifications
- โ๏ธ Admin commands for management (all platforms)
- Download
DisableVillagerTrade-Bukkit-x.x.x.jar - Place the JAR file in your server's
pluginsfolder - Restart your server
- Configure in
plugins/DisableVillagerTrade/config.yml
- Download
DisableVillagerTrade-Fabric-x.x.x.jar - Ensure you have Fabric Loader and Fabric API installed
- Place the JAR file in your
.minecraft/modsfolder (ormodsfor servers) - Start the game/server
- Configure in
config/disablevillagertrade.json
- Download
DisableVillagerTrade-Forge-x.x.x.jar - Ensure you have Forge installed
- Place the JAR file in your
.minecraft/modsfolder (ormodsfor servers) - Start the game/server
- Configure in
config/disablevillagertrade-server.toml
- Download
DisableVillagerTrade-NeoForge-x.x.x.jar - Ensure you have NeoForge installed
- Place the JAR file in your
.minecraft/modsfolder (ormodsfor servers) - Start the game/server
- Configure in
config/disablevillagertrade-server.toml
# Message settings
message:
enabled: true
text: "&cYou can't trade with villagers on this server."
# Worlds where villager trading is ALLOWED (not blocked)
disabled-worlds:
- example-world
# Update checker settings
update-checker:
enabled: true
check-interval: 24
notify-on-join: true{
"messageEnabled": true,
"message": "ยงcYou can't trade with villagers on this server.",
"disabledDimensions": [],
"updateCheckerEnabled": true,
"updateCheckInterval": 24,
"notifyOnJoin": true
}[message]
enabled = true
text = "ยงcYou can't trade with villagers on this server."
[dimensions]
disabled_dimensions = []
[update_checker]
enabled = true
check_interval = 24
notify_on_join = trueAll platforms support the /dvt command. Bukkit additionally registers /disabletrade and /tradetoggle as aliases.
| 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
| Command | Description | Required Permission |
|---|---|---|
/dvt reload |
Reload the mod configuration | OP level 2 (COMMANDS_GAMEMASTER) |
/dvt status |
Show mod status and settings | OP level 2 (COMMANDS_GAMEMASTER) |
/dvt help |
Show help message | OP level 2 (COMMANDS_GAMEMASTER) |
| 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 |
| Platform | Permission System |
|---|---|
| Bukkit | Native + LuckPerms, etc. |
| Fabric | Fabric Permissions API (optional), falls back to OP level |
| Forge | OP level 2+ |
| NeoForge | OP level 2+ |
| Platform | Link |
|---|---|
| GitHub Releases | Download |
| Modrinth | Download |
This is a composite multi-module Gradle project. Each platform has its own Gradle wrapper.
# Clone the repository
git clone https://github.com/dodoflix/DisableVillagerTrade.git
cd DisableVillagerTrade
# Build all platforms
cd bukkit && ./gradlew shadowJar --no-daemon && cd ..
cd fabric && ./gradlew build --no-daemon && cd ..
cd forge && ./gradlew shadowJar --no-daemon && cd ..
cd neoforge && ./gradlew build --no-daemon && cd ..Build outputs will be in:
bukkit/build/libs/fabric/build/libs/forge/build/libs/neoforge/build/libs/
Contributions are welcome! Please read CONTRIBUTING.md for guidelines on:
- Commit message conventions
- Pull request process
- Development setup
This project is licensed under the MIT License - see the LICENSE file for details.