Buying Tickets
/lottery buy <amount>Buys tickets for the current round (requires dlottery.buy). You can also buy from the GUI.
Price & the pool
Section titled βPrice & the poolβEach ticket costs ticketPrice (default 3000), charged through Vault. The money goes into the roundβs pool, minus the configured tax:
pool contribution = ticketPrice Γ amount Γ (100 β taxesPercent) / 100The charge is taken first and confirmed before any ticket is recorded β if the database write fails, youβre automatically refunded.
Ticket caps & VIP tiers
Section titled βTicket caps & VIP tiersβEach player has a maximum number of tickets per round, set by permission tier:
| Tier | Permission | Default cap |
|---|---|---|
| Default | (all players) | 1 |
| Iron | dlottery.tickets.iron |
2 |
| Gold | dlottery.tickets.gold |
3 |
| Diamond | dlottery.tickets.diamond |
4 |
| Emerald | dlottery.tickets.emerald |
5 |
The caps and tier names are configurable under maxTickets in settings.yml. Trying to exceed your cap gives βYou canβt hold more than <max> tickets.β
/lp group vip permission set dlottery.tickets.gold true # 3 tickets/roundCooldown
Section titled βCooldownβA per-player cooldown (cooldown, default 2s) sits between purchases to prevent spam: βWait <n>s before buying again.β
Failure messages
Section titled βFailure messagesβ| Message | Cause |
|---|---|
| βYou donβt have enough money for that.β | Vault balance below the cost. |
| βYou canβt hold more than X tickets.β | Would exceed your tier cap. |
| βWait Ns before buying again.β | Purchase cooldown active. |