Skip to content

The Lottery GUI

/lottery

(requires dlottery.gui) opens the live lottery menu β€” the friendliest way for players to see the round and join.

  • The current pool.
  • Your tickets in this round.
  • The time remaining until the draw.
  • A way to buy tickets without typing the command.

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.

/lottery top [sort]

opens the leaderboard menu β€” a separate GUI ranking players by winnings, tickets, win count or biggest win.