Lottery Final 0.2

A basic lottery plugin where people can buy tickets and win the pot!

  1. saxon12
    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!
    SmogHD likes this.

Recent Reviews

  1. GoleoLP
    GoleoLP
    1/5,
    Version: 0.2
    [07:02:16 ERROR]: Could not load 'plugins/LotteryFinal-0.2.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/orkunbulutduman/lotteryfinal/LotteryFinal : Unsupported major.minor version 52.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[minecraft_server.jar:git-Spigot-b73910a-726656b]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[minecraft_server.jar:git-Spigot-b73910a-726656b]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [minecraft_server.jar:git-Spigot-b73910a-726656b]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [minecraft_server.jar:git-Spigot-b73910a-726656b]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [minecraft_server.jar:git-Spigot-b73910a-726656b]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [minecraft_server.jar:git-Spigot-b73910a-726656b]
    at java.lang.Thread.run(Unknown Source) [?:1.7.0_10]
    Caused by: java.lang.UnsupportedClassVersionError: com/orkunbulutduman/lotteryfinal/LotteryFinal : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_10]
    at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.7.0_10]
    at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.7.0_10]
    at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.7.0_10]
    at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.7.0_10]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_10]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_10]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_10]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_10]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[minecraft_server.jar:git-Spigot-b73910a-726656b]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[minecraft_server.jar:git-Spigot-b73910a-726656b]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_10]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_10]
    at java.lang.Class.forName0(Native Method) ~[?:1.7.0_10]
    at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_10]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[minecraft_server.jar:git-Spigot-b73910a-726656b]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[minecraft_server.jar:git-Spigot-b73910a-726656b]
    ... 6 more
  2. MBoz
    MBoz
    4/5,
    Version: 0.2
    Orkun Bey , Güzel çalışma olmuş , daha çok nomercymcnin pluginlerini paylaşın olmuyor böyle :D
    Bir arada plugin yapmayi öğretiyordunuz , devamini bekleriz.