House bank
Make the casino pay wins only from what players lost, cap stakes and wins as a share of the bank, and read each game's real return.
The house bank is the casino's own money, one balance per currency. Turn it on and wins are paid only out of that balance, so the casino can never pay out more than it took plus its starting amount.
What it does#
The balance is the seed (what the bank holds before any bet), plus everything players lost, less everything they won. While the bank is on:
- A win is paid only from that balance, and never above a share of it, so the balance cannot go below zero.
- The largest stake is a share of the bank. It shrinks when the bank does.
- The most one round can win on top of its stake is a share of the bank. A win cut by it shows a line in chat, and boards show the limit under the stake.
While the bank is off (the default), nothing is limited. Results are still counted, so you can read each game's real return.
Each server of a network keeps its own balance.
Turn it on#
Open the bank settings
Run /casinoadmin, click Settings, then House bank.
Switch it on
Click the bank toggle. The two other entries, Stake share and Win share, set the limits in percent of the bank.
Set the seed
The seed is in config.yml, under bank.seeds. It is the most the casino can ever lose, so pick an amount you accept losing. Raising it tops the bank up at once.
Check the figures#
Run /casinoadmin bank. For each currency it shows whether the bank is on, its balance, its seed, the largest stake and the largest win, then one line per game: what players put in, what was paid, the real return and the number of rounds.
Settings#
Key in config.yml | Default | What it does |
|---|---|---|
bank.enabled | false | On, wins are paid only from the bank. Off, results are only counted. |
bank.seeds | default: "1000000" | What the bank holds before any bet, by currency id. default covers every currency not listed. |
bank.max-stake-percent | 1.0 | Largest stake, in percent of the bank. |
bank.max-win-percent | 5.0 | Most one round may win on top of its stake, in percent of the bank. |
A stake is also held to wager.maximum and the player's exyliacasino.maxbet.<n>: the lowest limit applies. See Configuration.
After a start the plugin reads the bank from the database. Until it has, no stake is taken.
Something missing on this page? Tell us on Discord