dLottery | Weighted Lottery System ✦ GUI ✦ Leaderboards ✦ VIP Tiers icon

dLottery | Weighted Lottery System ✦ GUI ✦ Leaderboards ✦ VIP Tiers -----

️ The feature your players will talk about in chat.



[​IMG]
dLottery

Weighted draws · Live GUI · MySQL-backed · Offline payouts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ What is dLottery?
dLottery is a fully-featured, database-backed lottery plugin for your server. Players buy tickets using in-game currency, a weighted random draw picks the winner at the end of each round, and the prize pot is paid out instantly — or held for offline players until they return.
No flatfiles. No race conditions. No lost winnings. Pure MySQL.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Features
  • Weighted random draw — more tickets = higher chance, not guaranteed win
  • ️ Live GUI — opens with /lottery, shows pool, timer and your tickets in real time
  • Leaderboard GUI — sort by winnings, ticket count, win count or biggest single win
  • Offline payouts — winner gets paid on next login if they're not online
  • VIP ticket tiers — permission-based ticket caps (iron/gold/diamond/emerald ranks)
  • Tax system — configurable % taken from each pot
  • Title announcements — cinematic winner reveal on draw
  • Winner history — full round-by-round winner log
  • ️ MySQL-backed — survives restarts, no state loss
  • Vault economy — works with EssentialsX, CMI, and any Vault-compatible plugin
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Commands
Aliases: /lottery · /lot · /dlottery · /dlot
  • /lottery — open the lottery GUI
  • /lottery buy <amount> — purchase tickets
  • /lottery status — show current round info
  • /lottery history — view recent winners
  • /lottery top— open leaderboard GUI
  • /lottery shuffle(op) — manually trigger a draw
  • /lottery reset (op) — refund all tickets & reset round
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Permissions
  • dlottery.gui — open GUI (default: true)
  • dlottery.buy — buy tickets (default: true)
  • dlottery.status — view status (default: true)
  • dlottery.history — view history (default: true)
  • dlottery.top — view leaderboard (default: true)
  • dlottery.admin — admin help (default: op)
  • dlottery.shuffle — manual draw (default: op)
  • dlottery.reset — reset round (default: op)
  • dlottery.iron / gold / diamond / emerald — VIP ticket tier perms
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Requirements
  • Paper or Spigot 1.16.5+
  • MySQL or MariaDB database
  • Vault
  • Any Vault-compatible economy plugin (EssentialsX, CMI, etc.)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Setup Guide
Drop dLottery.jar into your /plugins/ folder.
Make sure Vault and your economy plugin are already loaded.
Start the server — config files generate automatically.
Open plugins/dLottery/database.yml and fill in your MySQL credentials:
Code (Text):
host: your.db.host
port: 3306
database: dlottery # create this database first
username: yourUser
password: yourPassword
The plugin creates all required tables on first start automatically.
Open plugins/dLottery/settings.yml:
Code (Text):
lossTime: 60 # seconds between draws
cooldown: 2 # seconds between ticket purchases per player
minPlayers: 2 # minimum unique players for draw to trigger
ticketPrice: 3000 # cost per ticket in economy currency
taxesPercent: 5 # % of pot withheld as tax
maxTickets:
dlottery:
default: 1 # all players
iron: 2 # players with dlottery.iron permission
gold: 3
diamond: 4
emerald: 5
To grant a VIP tier: /lp user <name> permission set dlottery.gold true
Restart the server. Connect to your MySQL and confirm tables were created.
Run /lottery in-game — the GUI should open with an active round.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Made by DZUSILL
Resource Information
Author:
----------
Total Downloads: 6
First Release: Jun 17, 2026
Last Update: Jun 17, 2026
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings