BBLottery

BBLottery

BBLottery is a lottery - nothing more, nothing less. It features multiple tickets for the lottery, some stats about the lottery, configuration of the intervall a ticketnumber is drawn, the initial pot, the ticketrange,price and tax and how many tickets may be bought.

Configuration

intervall: The time between drawings in minutes
pot: The inital jackpot, every time someone wins, it gets reset to this amount
range: The ticket-range, the higher this number, the less likey it is that the lottery is won (each ticket has a chance of 1/range to win)
maxTickets: How many tickets a player may buy per round
ticketPrice: How much a ticket costs
tax: Tax on the tickets, so not the full price gets added to the jackpot

If you set the range to -1, the tickets will be given out in order, so first one to buy a ticket gets #1, second #2 and so on, and the winnig ticket will be taken from the bought tickets

Commands

  • /lottery - Shows the help
  • /lottery buy [ticketnumber] - buys a ticket with the given number, if no number is given, buys a random Ticket
  • /lottery give <player> [ticketnumber] - like /lottery buy, but buys ticket for another player (target has to be online)
  • /lottery info- current jackpot, tickets the player has bought and how much money a player would get if he won with a ticket
  • /lottery stats - shows some stats about the lottery

Some admin-comands:

  • /lottery reload - reloads the config
  • /lottery draw [-f]- forces the lottery to draw a ticketnumber and start the next round, if -f is set it also reloads the lottery.yml

Permissions

  • bblottery.buy - You can buy a ticket
  • bblottery.buy.multi - You can buy up to <maxTickets> tickets
  • bblottery.buy.other - You can buy a ticket for someone else
  • bblottery.draw - You can force the next round
  • bblottery.reload - You can reload the config

Localizations

TODO

  • Fix Resetting Tickets-bug
  • Draw at specific time
  • Suggestions!

Requires Vault and an economy-plugin

If you want to thank me, a little donation on Paypal is appreciated:

Donate




It does not work!!!11

If you encounter any problems with BBLottery give me as much info as you have, so that I can help you to the best I can. You got an error? go to the Server-Log and look for the error-message/stacktrace. Version of the plugin and Bukkit you are using would also be nice. Got no error-message? Then tell me what you were doing/typing. If I don't know what happend I can't fix it.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of CompleXx95 CompleXx95 Apr 09, 2014 at 15:33 UTC - 0 likes

    Nice plugin but please fix the issue with player and logging out. -> player buy a number and is going offline after the cooldown: the offline player won but he dont get a reard because its a error in a console andplugin breaks to server restart or reload.

    very annoying.

  • Avatar of Atlas_Minecraft Atlas_Minecraft Jun 08, 2013 at 15:10 UTC - 0 likes

    From my experiences the lottery.yml doesn't reset if the winner of the lottery is offline at the time of the drawing.

  • Avatar of XhadiusLP XhadiusLP May 31, 2013 at 10:36 UTC - 0 likes

    I already use the newest Version. Problem is also if the lucky guy, who won that game isn't online. Also nobody can buy a ticket after this.

    And yes, this is all the console says. I also was kind of surprised.

  • Avatar of Xcelsior1991 Xcelsior1991 May 30, 2013 at 09:08 UTC - 0 likes

    @XhadiusLP: Go try version 1.2.1 of this plugin...and is that everything the sonsole says? Usually the stackrace is a bit longer...

    BFAK:36373,f4351bb4bb6814d6e7a2f6cb04c9484e7799f60560132de5ae96a4ebfcb5a2e3

  • Avatar of XhadiusLP XhadiusLP May 29, 2013 at 16:27 UTC - 0 likes

    Everytime I restart the server it come this message, when I enter a command from this Plugin:

    An internal error occurred while attempting to perform this command
    

    The console says me this:

    18:25:24 CONSOLE: [SEVERE] null
    18:25:24 CONSOLE: exception executing command 'lottery' in plugin BBLottery v1.2
    18:25:24 CONSOLE: java.lang.IndexOutOfBoundsException: Index: 88, Size: 88
    

    I'm using spigot-1.5.2-R0.2 #878

    Last edited May 29, 2013 by XhadiusLP
  • Avatar of Xcelsior1991 Xcelsior1991 May 26, 2013 at 01:49 UTC - 0 likes

    Well, I don't see any reason it should not work with 1.5.2 except the things mentioned by @Atlas_Minecraft: Go

  • Avatar of Marium0505 Marium0505 May 25, 2013 at 23:36 UTC - 0 likes
  • Avatar of The_Newbizzle The_Newbizzle May 21, 2013 at 22:28 UTC - 0 likes

    does this work with 1.5.2?

    Clash of Kingdoms: The war is approaching [Game of Thrones inspired][Unique Prison/War server][Custom Plugins]

  • Avatar of Xcelsior1991 Xcelsior1991 May 20, 2013 at 21:17 UTC - 0 likes

    Ahhh, my bad, I mixed up maxTickets and range...I will implement the suggestion for maxTickets asap

  • Avatar of Atlas_Minecraft Atlas_Minecraft May 20, 2013 at 18:50 UTC - 0 likes

    When I set the maxtickets to -1, it told me I had the next number of tickets whenever I bought a ticket.

Facts

Date created
Jan 28, 2013
Category
Last update
Mar 19, 2014
Development stage
Release
Language
  • deDE
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
BBLottery
Downloads
3,704
Recent files

Authors