HomeJavaModsVillager Trade Lock
Villager Trade Lock
ModsJava

Villager Trade Lock

by Lupancham · on Modrinth

Tired of those players creating a monopoly or heavily crashing the prices of villager obtainable items on your server? Well this plugin aims to limit the…

⬇ Download on Modrinth
Villager Trade Lock — screenshot 1


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

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more