COWMODSКаталог модов

Wandering Merchants

An RPG plugin that spawns NPC merchants around players

Автор: MahinBro0012381110обновлён 26 окт. 2026 г.
ПриключенияЭкономикаМобы

Описание

WanderingMerchants

Brief Overview

Wandering Merchants brings RPG-style merchants to your server. Instead of every shop being in a fixed location like being confined to a single market area, these merchants spawn and roam the world on their own, and stumbling across one out in the wild make the server feel more alive. When a player finds a merchant, the player must give it an item specific to its personality and in return the merchant will allow the player to interact with it to browse and buy items.

Required Plugins

Setup Guide

  • Make sure that the permissions 'economyshopgui.shop' and 'economyshopgui.sellgui.all' are set to false. This makes it so that players can make transactions through the merchants only otherwise why would players even bother to go to a merchant to buy or sell items when then can just do so using commands. To configure these permissions, you may use any permission manager plugin.

  • Make sure to set 'direct-shop-command-console' to 'true' in the EconomyShopGUI's config. This is because if a player were to open a shop, the player could just use the back button to go the main menu of the plugin and access all the other shops that the merchant was not supposed to give access to.

Commands

  • /wm spawn <merchant id> [player] — Spawn a merchant at your location or at another player's location

    • /wm spawn sylphie or /wm spawn sylphie MahinBro
  • /wm give <merchant id> [player] — Give a merchant's item to yourself or another player

    • /wm give sylphie or /wm give sylphie MahinBro
  • /wm recipe <merchant id> [player] — Open a merchant item's crafting recipe GUI for yourself or another player

    • /wm recipe sylphie or /wm recipe sylphie MahinBro
  • /wm get merchant_data <merchant id> — View the config data of a merchant

    • /wm get merchant_data sylphie
  • /wm get npc_data <npc id> — View the internal data of a merchant NPC set by this plugin

    • /wm get npc_data 3
  • /wm get item_data — View the internal data of the item in your main hand set by this plugin

  • /wm set npc_data <npc id> <field> <value|player|NULL> — Set the internal data in NPCs used by this plugin

    ⚠️ Use with caution. Incorrectly modifying internal data of a merchant NPC can lead to unexpected issues. Only use this command if you know what you are doing.

    FieldsDescriptionAccepted ValuesExample
    merchant_idThe ID of a merchant defined in the configA merchant ID, or NULL/wm set npc_data 3 merchant_id sylphie
    merchant_variantThe current state of the merchant NPCstray, stray_moving, shopkeeper, shopkeeper_moving, or NULL/wm set npc_data 3 merchant_variant shopkeeper
    merchant_viewersThe number of players currently viewing this NPC's GUI. Only for stray variantsAn integer, or NULL/wm set npc_data 3 merchant_viewers 0
    creation_timeThe timestamp of when this NPC was spawnedA long integer, or NULL/wm set npc_data 3 creation_time 1745000000000
    followingThe player this NPC is currently followingAn online player's name, or NULL to stop following if the NPC is following anyone at the moment/wm set npc_data 3 following MahinBro

    Use NULL as the value to clear the field.

  • /wm set item_data id <value|NULL> — Set the merchant item ID for the item in your main hand

    • /wm set item_data id sylphie_scroll

    ⚠️ Use with caution. Setting an item ID on even dirt can cause it to be accepted by a merchant or setting a incorrect item ID on a actual merchant item can cause it to not be accepted by the merchant. Only use this command if you know what you are doing.

  • /wm set item_data cmd <value|NULL> — Set the custom model data of the item in your main hand

    • /wm set item_data cmd sylphie_grimoire

    ⚠️ Use with caution. Modifying the custom model data of an item may cause it to display a different texture. Only use this command if you know what you are doing.

Permissions

PermissionDescriptionWho has it by default
wanderingmerchants.wmAllows the use of /wm commandOperators only

Under The Hood

The NPCs themselves are created and controlled through Citizens2. For the actual trading functionality of buying and selling, instead of reinventing a new shop system, the merchants use EconomyShopGUI (which directly plugs into your server's economy) for their shops, buying from them uses your existing in-game currency meaning all shop related configuration can be done through EconomyShopGUI's config. Merchants that have not been given their desired items will disappear after a certain amount of time.

Minecraft Version And Server Software

The latest version plugin was built for Minecraft versions between 26.3 and 1.21.9 running on Paper. It may or may not work on other server software. It should work on forks of Paper such as Purpur and Pufferfish, though it has not been tested on them.

Note

One thing to mention is that EconomyShopGUI requires an economy plugin to function properly such as vault (vault also depends on EssentialsX). You may use any economy plugin.

The world seed used in the gameplay images is 3353863628485365188 in version 26.3 if anyone cares 😄.

Optional Plugins

Support

For support or questions, join my discord server: https://discord.gg/8yrbGUCFFD

License

Licensed under the Apache License 2.0

Other Projects

Check out other cool stuff I made at https://modrinth.com/user/MahinBro001238

Галерея

Gameplay Image 1Gameplay Image 2Gameplay Image 3Gameplay Image 4

Последние версии

Все версии →
release

Wandering Merchants Version 1.1.6

v1.1.6
26 окт. 2026 г.10Minecraft: 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3paper, purpur
Скачать
Что нового
The changes in this version includes: - Added /wm command. Read the README for its usage guide - Updated config and added a new no_permission_message - Wandering Merchants now supports all Minecraft versions between 26.3 and 1.21.9 - An update alert is sent to server operators on join when there is a new update - Dropped support for the old format that was used in version 1.1.3 and before. The /wm command allows you to manually migrate them to the newest format due to the amount of functionality it provides If you are updating from version 1.1.3, please update to 1.1.5 first to migrate the merchant NPC system and the merchant items then update to version 1.1.6
release

Wandering Merchants Version 1.1.5

v1.1.5
20 окт. 2026 г.18Minecraft: 26.1.2, 26.2, 26.3paper, purpur
Скачать
Что нового
Just a minor tweak in the plugin update notifier. Forgot to disconnect the request to GitHub for updates which is now fixed. This update still contains support for the old format.
release

Wandering Merchants Version 1.1.4

v1.1.4
19 окт. 2026 г.12Minecraft: 26.1.2, 26.2, 26.3paper, purpur
Скачать
Что нового
This version brings major changes to the plugin. The changes in this version include: - The provided jar file can now run on Minecraft versions between 26.1.2, 26.2 and 26.3 - Added more dialogues for merchants based on their personality - Instead of having a fixed text that is sent to the player when a merchant spawns, each merchant now has their own spawn text - You can now set the spawn radius for how far away a merchant will spawn from the player - Config file has been updated to allow a lot of customizations for each merchant such as their: - Name - Shop - Skin - Dialogues - Whether the merchant should glow when it is spawned - Spawn text - The material, name and lore for the icon that leads to the merchant's shop and the icon that leads to the merchant's SellGUI - Allows a merchant to be enabled or disabled - Customization of the merchant's item such as: - Name - Lore - Custom model data - Crafting recipe The configuration of all the built-in merchants are provided in the default config. Many fields such as diaglogues, item name and item lore supports MiniMessage formatting (like <bold>Bold text<bold>). Make sure to read the default config's comments for more information - Switched to a new system for identifying whether the item given to a merchant is the correct item or not by looking at the item's ID (also configurable through the config) instead of the item's lore - Renamed the field names of metadata that is stored within merchant NPCs Due to major changes in the plugin's internal structure, merchant NPCs and the merchant items generated by the old version of this plugin are now outdated. This version of the plugin automatically updates all the old merchant NPCs to the newest format when server is started however it is not possible to update all the items. Because of this, outdated merchant items are still accepted by merchants (assuming server owners do not change the default item IDs) and players who have the old items are requested to update them to the newest format by executing /migrate_item command while holding the item. Server owners are requested to update their plugin's jar as soon as possible because in future releases of this plugin, I will drop all support for the outdated format which includes the automatic update of merchant NPCs, the /migrate_item command and merchants will stop accepting old items.
release

Wandering Merchants Version 1.1.3

v1.1.3
13 окт. 2026 г.26Minecraft: 26.3paper, purpur
Скачать
Что нового
The changes in this version include: - Added a bStats integration to collect anonymous statistics - Added a unique version for config files - Added an automatic update checker - Added a cool banner to be printed in the server logs during startup - Added config migration: Automatically updates the config file from previous versions but keeps any changes made by server owners
release

Wandering Merchants Version 1.1.2

v1.1.2
11 окт. 2026 г.12Minecraft: 26.3paper, purpur
Скачать
Что нового
The changes in this version includes: - Added a config file. It now allows server owners to: - Change the message sent to the player when a merchant spawns near them - Set the time for how frequently a merchant spawns near a player - Set the time before a merchant despawns if it has not been turned into a shopkeeper - Set the time for how often the plugin should look for merchants to despawn - Changed Edmund's Seed Pouch's crafting recipe - Fixed a typo in Sylphie's Grimoire's crafting recipe GUI - Fixed version mismatch between build.gradle.kts and plugin.yml which was left over from the previous update
release

Wandering Merchants Version 1.1.1

v1.1.1
28 сент. 2026 г.12Minecraft: 26.3paper, purpur
Скачать
Что нового
Updated to Minecraft 26.3 and updated Citizens API to 2.0.44
release

Wandering Merchants Version 1.1

v1.1
17 сент. 2026 г.12Minecraft: 26.2paper, purpur
Скачать
Что нового
Fixed a bug where interacting with NPCs not created by the plugin caused unnecessary error spam in the server console
release

Wandering Merchants Version 1.0

v1.0
17 сент. 2026 г.8Minecraft: 26.2paper, purpur
Скачать
Что нового
Initial release of Wandering Merchants v1.0 for Minecraft 26.2 PaperMC