Bank
Every town owns a balance handled by BankService. The balance is used to pay claim costs and can be operated by any member with the appropriate permission.
Commands
Command | Permission | Description |
|---|---|---|
| member | Show current balance. |
|
| Move money from the player to the town. |
|
| Move money from the town to the player. |
Each transaction:
Validates the amount is positive.
Verifies the source has enough funds (
BANK_INSUFFICIENT_FUNDS).Persists the change atomically.
Writes a
DEPOSITorWITHDRAWaudit log with aBankLogPayload(amount, target / actor UUIDs).Sends
BANK_DEPOSIT_SUCCESSorBANK_WITHDRAW_SUCCESS.
Claim payments
ClaimService calls into the bank automatically: when cost-expression produces a non-zero amount, the claim attempt deducts from the town balance and surfaces CLAIM_INSUFFICIENT_FUNDS on shortfall — no hand-off is required from the player.
Placeholders
Placeholder | Value |
|---|---|
| Raw integer balance. |
| Formatted with thousands separators. |
| The viewer's selected town's formatted balance. |
TOWN_BALANCE is the formatting template used by the balance menu and the bank confirmation messages.