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.
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