Skip to content

EconGuard Integration

joogiebear edited this page Jul 15, 2026 · 1 revision

EconGuard Integration

EconGuard is the suite's shared economy audit ledger and anti-abuse core. When it's installed, RoyalBazaar reports every trade to it automatically.

What you get

The bazaar is usually a server's single biggest money faucet and sink — coins are created every time someone sells and destroyed every time someone buys. That makes it exactly the flow you want an audit trail over. RoyalBazaar on its own only knows about bazaar trades; EconGuard correlates them with the same players' activity across the whole suite (banking, the auction house, /pay).

With EconGuard installed:

  • Every completed buy and sell is reported to the shared ledger under the bazaar source, with the amount and whether it was incoming (a sell) or outgoing (a buy).
  • /eg history <player> shows a player's bazaar activity alongside their bank and auction activity.
  • EconGuard's detection (large-transaction and velocity signals) runs over the combined data — so a player quietly draining the market shows up next to whatever else they're doing.

Because a bazaar trade is between the player and the market (there's no second player), it's logged as a market movement rather than a player-to-player transfer.

Setup

There is nothing to configure. If EconGuard is installed, RoyalBazaar detects it and starts reporting automatically. If it isn't, RoyalBazaar behaves identically without it — the hook is a single optional check, genuinely zero-cost when absent.

  1. Install EconGuard.
  2. Restart the server.
  3. Make a trade, then run /eg stats or /eg history <player> — the bazaar event should appear.

Load order

RoyalBazaar doesn't depend on EconGuard loading first — the reporting hook resolves lazily when EconGuard is present, so either order works. Add EconGuard later and RoyalBazaar picks it up on the next restart.

See EconGuard's own wiki for its detection signals, flag review, and tuning.

Clone this wiki locally