The Lottery GUI
/lottery(requires dlottery.gui) opens the live lottery menu β the friendliest way for players to see the round and join.
What it shows
Section titled βWhat it showsβ- The current pool.
- Your tickets in this round.
- The time remaining until the draw.
- A way to buy tickets without typing the command.
Live updates
Section titled βLive updatesβThe menu is live: when anyone buys tickets, every open lottery GUI refreshes automatically to show the new pool and ticket counts β players watch the pot grow in real time. When a round draws, all open lottery menus close.
Because the GUI renders synchronously, dLottery keeps a write-through snapshot of the open round in memory (updated only after each database write actually succeeds), so the menu is always accurate without waiting on the database.
Leaderboard GUI
Section titled βLeaderboard GUIβ/lottery top [sort]opens the leaderboard menu β a separate GUI ranking players by winnings, tickets, win count or biggest win.