
WebshopLink
Support a webshop that can modify players inventories
Screenshots



About this Mod
WebshopLink
A Minecraft Forge mod that lets players browse and use an external web shop inside an in-game browser window, then have the purchased items applied straight to their inventory.
WebshopLink only handles the in-game side. The actual shop (catalog, pricing, what items a player gets) lives in an external web service that you run and that speaks WebshopLink's HTTP protocol. See the Wiki for the contract, and
demo/for a working reference implementation.
How it works
- A player runs
/shop <type>in game. - WebshopLink (server side) sends the player's current inventory to your shop API and gets back a session URL.
- The URL opens in a full-screen in-game browser (rendered with MCEF) floating over the game world, with a small button bar at the bottom.
- The player builds their cart on the web page, then clicks Finish Trade.
- WebshopLink fetches the resulting inventory from your API, verifies the player's inventory hasn't changed since the session started, and applies it. Closing the window (or Cancel / ESC) cancels the session.
Player ──/shop──▶ WebshopLink (server) ──HTTP──▶ Your shop API
│ │
└──── opens in-game browser ───┘
│
Finish Trade ▼
inventory applied to player
Features
- In-game shopping — the web shop renders in a Chromium browser overlaid on the game; no alt-tabbing to an external browser.
- Inventory verification — purchases are rejected if the player's inventory changed between starting the session and confirming, preventing duping/race exploits.
- Two-factor session code — an anti-tampering code is exchanged with your API on every call so sessions can't be forged from outside.
- API key support — every request to your shop API carries a configurable
X-Webshop-Api-Keyheader. - Main inventory + Ender Chest support, with full NBT serialization for complex items.
- Optional networking — the mod registers its network channel as optional, so vanilla clients (or clients without the mod) can still connect to the server; they just can't open the browser.
Requirements
| Side | Required |
|---|---|
| Server | WebshopLink mod |
| Client | WebshopLink mod + MCEF) |
- Minecraft 1.20.1, Forge 47.x
- MCEF 2.2.0+ (client only — the dedicated server never loads it)
Players whose client is missing the mod/MCEF will be told to install them when they run /shop.
Commands
| Command | Description |
|---|---|
/shop <type> [label] |
Cancels any unfinished session, then starts a new shop session of the given type (the shopSlug sent to your API). Optional label is shown in the confirmation UI. Opens the in-game browser. |
/shopFinish <uuid> |
Manual backstop for checkout (the browser's Finish Trade button does this automatically). Fetches the new inventory and offers a clickable confirm link in chat. |
/confirmFinish <uuid> |
Applies the checked-out inventory changes. |
/shopCancel <uuid> |
Cancels the session both locally and with your API. |
Normal play only needs /shop — the browser's buttons drive the rest. The other commands exist as fallbacks and for clients without the in-game browser.
By default anyone can run /shop. To restrict it to operators/command blocks (so shops only open at specific locations) set shopCommandPermissionLevel in the config — see Locking down /shop.
Installation
Server
- Download the latest WebshopLink release JAR.
- Drop it into the server's
mods/folder. - Start the server once to generate
config/webshoplink-common.toml, then point it at your shop API (see the Wiki). - Restart.
Client (each player)
- Install MCEF).
- Install the WebshopLink mod.
Documentation
- WIKI — server-operator setup: full config reference, the HTTP API your shop must implement, inventory data format, and the security model.
demo/— a small, fully-commented reference shop (Bun + Tailwind) you can run locally to try the mod or learn the contract.
License
See LICENSE.
Available Versions
How to Install WebshopLink on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "WebshopLink". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
WebshopLink server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is WebshopLink compatible with forge?
WebshopLink officially supports forge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with WebshopLink – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if WebshopLink consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install WebshopLink with just one click on your server.