String Trade Villager

About

A Minecraft plugin that transforms villagers into string-for-emerald traders. When a player right-clicks a villager, the plugin intercepts the default trading interface and replaces it with a custom trade: 1 string for 1 emerald. The plugin listens for villager interaction events, cancels the default GUI, and opens a custom trade menu. Players can exchange string for emeralds repeatedly, with the plugin managing inventory transactions automatically. The plugin also handles edge cases such as insufficient string, full inventory, and prevents trading with non-target villagers. Configuration options allow adjusting the trade ratio and enabling/disabling the feature per-world.