Home›Java›Mods›Lottery Final
Lottery Final
the only lottery plugin you will ever need
​
How it works:
Players type /lottery to see the information about the current lottery, such as name, draw time, prize, number of tickets on sale etc. They can then use /lottery buy to buy tickets for a configured price. The amount of tickets that can be bought per player can also be limited.

When the admin types /lottery draw the pot is given randomly to one of the ticket holders.
​
Features:
Permissions support (but not required)
Fully translatable
Simple commands
MySQL backend

Commands:
/lottery - gives info about ongoing lottery
/lottery buy - buys a ticket for configured price
/lottery start <name> <draw_time> <prize> <num_tickets> <ticket_cost> <max_ticket_per_user> - starts a new lottery with the given parameters
/lottery draw - end the current lottery and awards the pot to the winner
/lottery stop - cancels the ongoing lottery and resets all tickets sold
/lottery reload - reloads config and re-establishes mysql connection

Permissions:
lotteryfinal.user - access to /lottery and /lottery buy (given by default)
lotteryfinal.admin - access to all commands

Config:
Code (Text):
General:
  Debug: false
  Ongoing: true
MySQL:
  address: localhost
  port: '3306'
  database: minecraft
  username: user
  password: pass
Lottery:
  Name: Milli Piyango
  Time: 31 Ocak
  Prize: 1500000
  TicketPrice: 1000
  TotalTickets: 5000
  TicketsPerUser: 100
Locale:
  select: tr
  en:
    none: '&cNo lottery will be drawn soon. Follow the anouncements for upcoming events!'
    info:
      line1: '&7&l||========== &r&9&lNoMercyMC Lottery &r&7&l=========='
      line2: '&7&l||&r&6Lottery Name: &5%name%   &6Big Prize: &5$%prize%'
      line3: '&7&l||&r&6Draw Time: &5%time%   &6Remaining Tickets: &5%totaltickets%'
      line4: '&7&l||&r&6Tickets in Hand: &5%usertickets%'
      line5: '&7&l||&r&6Buy tickets with &2/lottery buy &6each &5%ticketprice% &6dollars.'
    wrong: '&cWrong command syntax. Use &2/lottery &cfor help.'
    boughtTicket: '&9You just bought a lottery ticket for &6%ticketprice% &9dollars.'
    noMoney: '&cYou dont have enough money. A ticket is &6%ticketprice% &cdollars.'
    noTickets: '&cThere are no tickets remaining. All sold out.'
    noLimit: '&cYou cant buy anymore tickets. There is a &6%ticketlimit% &cticket
      limit per user.'
    noPerm: '&cYou dont have permission.'
    alreadyRunning: There is already a lottery in action.
    notRunning: There is no ongoing lottery.
    lotteryStarted: A new lottery has been started with the variables you provided.
    lotteryStartSyntax: To activate the lottery type /lottery start Name Date Prize TicketPrice TotalTickets TicketsPerUser
    lotteryStopped: The ongoing lottery has been stopped, and all tickets deleted.
    lotteryDraw: The lottery will be drawn soon.
    resultBroadcast: '&6Congratulations, the player &5%player% &6has won the lottery.
      &c%prize% &6dollars!'
    reload: Config reloaded.
  tr:
    none: '&cYakin zamanda piyango cekilmeyecek, biletleri kacirmamak icin duyurulari
      takip edin!'
    info:
      line1: '&7&l||======== &r&9&lNoMercyMC Milli Piyango &r&7&l========'
      line2: '&7&l||&r&6Cekilis: &d%name%   &6Buyuk Ikramiye: &d$%prize%'
      line3: '&7&l||&r&6Cekilis Zamani: &d%time%   &6Kalan Biletler: &d%totaltickets%'
      line4: '&7&l||&r&6Elinizdeki Biletler: &d%usertickets%'
      line5: '&7&l||&r&6Bilet almak icin &2/piyango al &6yazin. Tanesi &d%ticketprice%
        &6dolar.'
    wrong: '&cYanlis komut. &2/piyango &cyazarak yardim alabilirsiniz.'
    boughtTicket: '&6%ticketprice% &9dollar odeyerek piyango bileti aldiniz.'
    noMoney: '&cYeterli paraniz yok. Bir bilet &6%ticketprice% &cdolar.'
    noTickets: '&cHic bilet kalmamis. Hepsi satilmis.'
    noLimit: '&cDaha fazla bilet alamazsiniz. Her kullanici &6%ticketlimit% &cbilet
      alabilir.'
    noPerm: '&cBunun icin yetkiniz yok.'
    alreadyRunning: Zaten devam etmekte olan bir cekilis var.
    notRunning: Devam etmekte olan bir cekilis yok.
    lotteryStarted: Vermis oldugunuz degiskenlerle yeni bir cekilis baslatildi.
    lotteryStartSyntax: Cekilisi aktive etmek icin /piyango baslat Isim Tarih Odul BiletFiyati BiletAdeti KullaniciBiletLimiti
    lotteryStopped: Devam etmekte olan cekilis durduruldu ve tum biletler silindi.
    lotteryDraw: Piyango yakinda cekilecek.
    resultBroadcast: '&6Tebrikler, oyuncu &5%player% &6piyangoyu kazandi. &c%prize%
      &6dolar!'
    reload: Ayarlar tekrar yuklendi.
Turkish is also one of the built in languages.


Requirements:
MySQL database
Vault plugin (for economy system)

This is my first plugin release, all comments and feature requests are welcome.

Why not Download Now? And add more fun to your server!

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Lottery Final is a free Minecraft Java mod. Downloaded 741 times (via Spigot). Download it and open it directly in the game.

Explore more