# Donut Profit HUD
**Know exactly how much you're up (or down) on DonutSMP, without doing the maths.**
Donut Profit HUD puts a small banner at the top of your screen that shows your running **net profit**:
> **Net = everything players paid you − everything you paid players**
Every time a payment goes through, the banner flashes the amount: **+$5M** in green when you get paid,
**-$6.12M** in red when you pay someone. Big numbers are shortened to K / M / B so the banner stays small,
but the mod keeps the exact amounts behind the scenes.
## Features
- ๐ฐ **Live net profit**: received minus paid, updated the moment a payment confirms.
- โก **Payment flash**: every payment pops up as `+$7.4M` (green) or `-$6.12M` (red) under the banner.
- ๐ **"While you were away" pay counts too**: the summary DonutSMP shows when you join is added to your total.
- ๐จ **Full in-game editor** (press **K**):
- drag the banner anywhere, drag the gold corner to resize it
- change the label ("Net", "Profit", whatever you like)
- colours for positive / negative / zero net, label, background and border, using RGB sliders, a hex field or 16 swatches
- background opacity, border width, text shadow
- flash on/off and flash duration
- ๐ **Show / hide** the banner with **J**.
- ๐ **Reset Session** button (with a confirmation step) to start counting from zero.
- ๐พ **Remembers your totals** across disconnects and restarts until you reset.
- ๐งพ **Tax option**: count the /pay tax as money paid (default) or ignore it.
## How it works
DonutSMP already tells you about every payment in chat. The mod reads only those exact confirmation messages:
| Server message | What the mod does |
| --- | --- |
| `Steve paid you $ 7.4M` | +7,400,000 received |
| `You paid Steve $ 6M (+$ 120K tax)` | 6,120,000 paid (or 6,000,000 with *Count tax as paid* off) |
| `You were paid $ 4.8M while you were away` | +4,800,000 received |
Everything else is ignored:
- โ failed payments ("That player does not have payments enabled…", "This user is not online")
- โ the `/pay` command you type
- โ other people's transfers, shop and auction messages
- โ **player chat**: someone typing "x paid you $ 5M" in chat can't fake a payment, because the whole message has to match the server's exact format and player chat always carries the sender's name in front.
By default it only counts while you're connected to a server whose address contains `donutsmp`
(donutsmp.net, og-donutsmp.net …). You can turn that off in the **Rules** tab.
## Safe and read-only
- Only **reads** messages the server already sends you.
- Never sends chat or commands, never clicks anything, **never makes payments**.
- No API key, no account, no server plugin, no internet connection of its own.
- 100% client-side: the server doesn't need it.
## Controls
| Key | Action |
| --- | --- |
| **J** | Show / hide the banner |
| **K** | Open the editor |
Both keys can be changed in *Options → Controls → Key Binds → Donut Profit HUD*.
## Editor
- **Toolbar**: *Preview + / Preview −* (test the flash, nothing is counted), *Center*, **Reset Session…**,
*Panel: Right / Left / Off*, *HUD: On / Off*, *Done*.
- **Banner tab**: label, size, center / snap to top, border width, text shadow, flash on/off, flash time.
- **Color tab**: pick what to colour, then use the RGB sliders, opacity, hex code or swatches.
- **Rules tab**: *Count tax as paid*, *DonutSMP only*, *Count away pay*, plus your received / paid / payment count.
## Installation
1. Install [Fabric Loader](https://fabricmc.net/use/) for Minecraft **1.21.11**.
2. Download [Fabric API](https://modrinth.com/mod/fabric-api) for 1.21.11 and put it in your `mods` folder.
3. Put `donut-profit-hud-1.0.0.jar` in the same `mods` folder and start the game.
## FAQ
**Is this allowed on DonutSMP?**
It's a read-only HUD that doesn't automate anything, but every server sets its own rules. Check DonutSMP's
rules on client mods before using it.
**Why does it say $7.4M and not $7,412,345?**
DonutSMP itself prints amounts in short form ("$ 7.4M"), so that's the most precise number the client ever receives.
**Does it work on other servers?**
It's built for DonutSMP's message format. Other servers word payments differently, so they won't be counted.
---
*Not affiliated with or endorsed by DonutSMP or Mojang.*