The jackpots plugin (first-party, signed list) runs a bad beat jackpot, a high hand and a cash drop at the real-money cash tables you choose, for hold’em and Omaha. All three are off by default (today’s behaviour) and are paid from one fund per currency (see "One fund, reserved shares").
How the fund is filled
- The fund is
bad-beat, declared throughregistry.jackpots. Players see its name, rate and cap in the table’s rake disclosure before they sit and at the table (the core disclosure names every fund). - Each raked hand at a participating table adds the plugin’s rate of the contested pot, at most its cap per hand, as a labelled jackpot contribution. It is not rake and not revenue: the core books it to the jackpot fund ledger. The operator limits (Admin Panel, jackpot contribution settings) are the ceiling: the settings page refuses a rate or cap above them.
- Each currency is its own fund. The core ledger keeps one balance per fund and currency. A hand contributes in its table’s currency (the rake filter context carries it) and a bad beat is paid from the balance in the same currency. The "Banner currency" setting only chooses which balance the lobby banner shows; the admin page and the status route list every currency’s balance seen on this server.
- One fund per hand: the core takes one contribution per hand for one fund. Several contributions per hand are not supported.
- Never at tournament, play-chip or club tables (the core refuses them). A participating table that does not play for site real money (the rake filter’s
moneyModeisplayorclub) takes nothing, and the plugin logs a warning once per table instead of refusing silently. In certified mode contributions are locked off: the plugin loads, takes nothing, pays nothing, and its admin page says so. - Operator seed. Staff with the
finance:transactionspermission can put the operator’s own money into the fund (Admin Panel › Settings › Gameplay › Jackpot funds, or the Admin APIPOST /api/v1/admin/settings/jackpot-contributions/funds/bad-beat/seedwith{ currency, amount, note?, requestId }). The form asks for the fund, the currency, the amount and a reason (required in the form), then shows the fund balance before and after for confirmation; its request id is made once per form open, so a retried submit books once, and the result shows the ledger entry and the request id the audit row records. A request id already used for another fund or currency is refused with 409. The seed and its audit row commit in one transaction; a repeated request id books once; it is refused in certified mode. The money comes from outside the platform’s ledgers (as the jackpot Sit and Go float’s funding does): no operator account is debited. Nothing takes fund money back out except a payout. The jackpot funds reports show seeds in their own column and still reconcile.
Settings
| Setting | Default | Meaning |
|---|---|---|
| Bad beat jackpot | off | Switches the jackpot on. |
| Banner currency | GOLD | The currency whose fund balance the lobby banner shows. Every table contributes to and pays from the fund in its own currency. |
| Participating tables | none | Real-money cash table ids. |
| Game types | OMAHA | OMAHA, OMAHA_5 and TEXAS_HOLDEM. In Omaha every hand uses exactly two hole cards. |
| Lowest / highest big blind | 0 / 0 | Stakes range (0 as the highest: no maximum). |
| Contribution rate | 1% | Share of the contested pot. |
| Cap per hand | 100 chips | Most one hand adds. |
| Minimum losing hand (Omaha) | four of a kind | Full house, four of a kind or straight flush. |
| Minimum losing hand (hold’em) | aces full of kings | Full house, aces full of kings, aces full of aces, four of a kind or straight flush, compared by the hand’s full rank. |
| Minimum winning hand | four of a kind | The hand that beats the losing hand must be this or better (every game). |
| Both hole cards must play (hold’em) | on | The winning and the losing hand must each use both hole cards. |
| Minimum players dealt in | 4 | 2 to 10. |
| Shares | 50 / 25 / 15 / 10 | Losing hand, winning hand, the other players dealt in (equal parts), kept to reseed. Whole percentages adding up to 100. |
The hold’em default is "aces full of kings or better beaten by four of a kind or better". The Omaha defaults are unchanged from the first version.
When a hand qualifies
Every rule uses the core hand evaluator’s results from the completed hand; the plugin reads no cards itself. For each hand shown at showdown the core reports its full rank (the hand category and its tie-break values, so "aces full of kings" is told from "aces full of queens") and which hole cards the best five cards used, both from the result the pot was paid on.
- A participating table, a site real-money cash hand, a showdown, rake taken, at least the minimum players dealt in.
- One board only: a hand run twice or three times, a double-board hand or a bomb pot does not qualify.
- One player won the main pot (a split main pot does not qualify); the best shown hand that lost it is the losing hand, which must be the minimum or better. The winning hand must be the minimum winning hand or better.
- Hold’em with "Both hole cards must play" on: the winner and the loser each used both hole cards. A core that does not report the hole cards used makes the hand not qualify (the log says why).
- Neither the winner nor the loser is a bot.
The admin page lists each candidate hand (a losing full house or better) with why it did or did not qualify.
The payout
- The fund balance in the hand’s currency (from the core fund ledger) is divided by the shares, in cents, floored; every odd cent and a table share nobody can receive stay in the fund. The plan is stored before the first payout, so a retry pays the same amounts.
- Each payout goes through
registry.jackpots.payout. Its key comes from the core’s stable hand reference (handRef: the table, the hand’s start time and its hand number), which never repeats across server restarts, so a second bad beat at a recreated table that numbers its hands from 1 again is paid, and a replayed completion of the same hand pays nothing more. With an older core that gives no hand reference, the key falls back to the table, the hand number and a fingerprint of the hand. The core never pays more than the fund holds. - The core payout credits any player’s wallet: it does not check test accounts, staff accounts or a block on winnings. Bots are never paid (a hand with a bot as winner or loser does not qualify; bots get no table share).
- The win is announced to the site and the table (realtime
winner).
Display
lobby.top: the fund balance and a link to the rules page (/ext/jackpots/rules), and the latest winner.table.hud.panel(the table’s plugin panel): while the jackpot is on, a link to the rules page, and the announcement when a bad beat is paid at this table.- Admin page: status, the operator limits and the certified-mode lock, the qualification log with payouts, and the recent fund ledger (contributions, operator seeds and payouts, newest first, through
registry.jackpots.entries). The full fund ledger is in the jackpot funds report.
One fund, reserved shares
- Bad beat, high hand and cash drop are all paid from the one declared fund (
bad-beat) in the table’s currency, filled by the one contribution a hand makes (at the bad beat’s participating tables, with its rate and cap) and by operator seeds. The core’s rule of one fund per hand holds without any assignment rule. Chosen over two funds because a split of one hand’s contribution would need a rule that never depends on chance or on the hand’s outcome, and conservation is simplest to show with one ledger. - The high hand and the cash drop each have a reserved share of the balance (settings, 20% and 10% by default, together at most 100%). While either is on, a bad beat plans its shares from the rest of the balance (for example 70% with both on at the defaults). Every payout goes through the core payout, which never pays more than the fund holds.
- High hand and cash drop have their own participating table lists. A table that is only on those lists contributes nothing: the fund grows from the bad beat tables and seeds.
High hand
- Periods, on the server clock in the site time zone setting (
highHandTimeZone, IANA name, default UTC): every hour on the hour (default), every N hours counted from local midnight (N divides 24), or daily at a set local time. A boundary at a local time that does not exist (clocks going forward) falls at the first instant after it; a local time that happens twice (clocks going back) is taken the first time, so that day’s period is 25 hours long. The open period’s start and end are stored when it opens: a restart or a settings change never shifts, repeats or skips it, and a new period setting applies from the next period. A period never starts before the previous one ended. - Qualifying: a hand shown at an ordinary single-board showdown at a participating real-money table, by a human player, at or above the minimum hand (default four of a kind). Hold’em: both hole cards must play (setting, on by default); Omaha always uses exactly two. Ranking uses only the core’s
rankValuesfrom the completed-hand payload, so it can never disagree with the core. A bomb pot, a double board or a hand run more than once never qualifies: the plugin reads the core’shandKind(bomb pot, boards dealt, runs) from the completed-hand payload. A straddle does not matter. A rabbit-hunt reveal after the hand is never part of it. The bad beat refuses the same hands the same way. - Leaders: the best hand of the period per currency; every player tied at the top, once each. The lobby banner shows the leader’s hand, table and public display name (the username) live (realtime
high-hand-leader); no other player data. - Prize: the reserved share of the balance at the close (
share), or a fixed amount capped by that share (fixed). Ties split equally in cents; odd cents stay in the fund. A period with no qualifying hand pays nothing: the prize stays in the fund. - Close: one idempotent step, run by a timer (every 30 seconds) and by the next completed hand, whichever comes first. The plan (balance, prize, the split) is stored before the first payout; each payout’s key is
hh.bad-beat.<currency>.<period>.<player>, so two concurrent closes, a close on another server or a retry after a restart pay nothing twice. A failed payout leaves the period open; the next trigger retries with the same plan and keys. - A hand belongs to the period in which it ended: the plugin places a hand by the core’s
endedAt(the server clock time the hand completed), not by when it handles it. A period closes 10 seconds after its end time (the settle delay,HIGH_HAND_SETTLE_MS): a hand that ended just before the boundary and arrives a moment later still counts. A hand that arrives later than that for a period already closed is logged (a warning) and never reopens it. While the last period settles, the next one is already open for hands that ended after the boundary. - The clock drift gate (the server-wide stop when the server clock drifts too far): it stops new hands, not jackpots. A cash drop for a hand that completed, and a high hand period close that falls due while the gate is closed, still draw and pay: they pay for hands already played. Period boundaries follow the server clock as it reads at the time: a clock correction after a drift does not reopen a period that has closed, and a hand is still placed by its own
endedAt. - Several server processes: the period’s leaders, the period record, the stored plan, the close marker, the period history and the qualification log are written with the core’s compare-and-set (
registry.storage.global.update, one key locked at a time in the database). Two qualifying hands at the same moment on two processes both count; a retried hand adds no second log line (keyed by the hand reference); a manual close racing the timer close (on this process or another) stores one plan, pays once, writes one history row and announces once. A leader in a currency that had none when the close began (a hand that ended in the period and arrives during the close) is planned and paid before the close marker is written, so the history never shows a winner who was not paid.
Cash drop
- After each completed hand at a participating table (real money, a stable hand reference, at least one human pot winner), the plugin counts it, by compare-and-set: two hands at once on two processes both count, and a retried hand counts once (the last 200 counted hand references are kept). The drop log and the decision per hand are written the same way. After a drop, the next
cashDropMinGapHandshands (default 100) cannot be chosen; from then on each hand is drawn for, after it completed, with one integer in [0, average − gap) from the core’s certified random source (registry.random.int, capabilitygame:random-draw); the hand is chosen when the integer is 0. The average gap iscashDropAverageHands(default 500), never below the minimum gap. - The draw is recorded by the core (audit trail, resource type
plugin-random-draw) with the purpose text naming the hand reference, the range and the result; the plugin also stores its decision per hand before any payout, so a repeated hook or a restart never draws twice for one hand. - A refusal from the random source (the RNG health latch closed, the rate limit) means no drop for that hand and a warning in the log, never another source.
- The drop:
cashDropAmount(default 5.00), capped by the cash drop’s reserved share of the balance, split equally between the hand’s human pot winners in cents (odd cents stay in the fund), paid throughregistry.jackpots.payoutwith the keycd.<hand>.<player>. Never chips into a pot. Announced to the site and the table (realtimecash-drop) and listed in the lobby status and on the admin page.
Rules page and admin page
- The rules page (
/ext/jackpots/rules) explains each jackpot that is on: qualification, the period, the shares, how drops are drawn, and the one fund. This is the disclosure text players see. - The admin page adds the high hand’s current period and leaders, the period history with what each paid, the high hand qualification log, the drops and every cash drop draw. In certified mode it says that nothing is recorded, drawn or paid.
Settings on every process
The public status route, the admin overview and the period timer read the plugin settings through the core settings accessor, which reads the database on every call (it keeps no cache). The plugin keeps what it read for 5 seconds (SETTINGS_CACHE_MS), so every server process follows a settings change within 5 seconds, also a process that completes no hand. A completed hand always reads the settings afresh.
Not built
- Nothing open in the plugin itself. The bomb pot, double board and run-more-than-once exclusion now reads the core’s
handKind.