Lottery
Lottery
News
- Appears to still work on 1.4.6 & 1.5.2 & 1.6.4 & 1.7.1 & 1.8.3 & 1.9 no reported bugs.
Shortcuts
FAQ
Q: How do I set the amount of money the jackpot should start with?
A: You need to set extraInPot to whatever amount you want it to start with, and then do clearExtraInPot: false
Q: The jackpot is winning too much, I don't want it to win.
A: Then you need to change the numberOfTickets to something else, or just set it to 0 (jackpot will never win then).
Features
- Users can buy one or more tickets and have the chance to win money in the pot (total tickets bought * price * net payout variable / 100 )
- Configurable price, material (including money/coins), hours between lottery drawings and other configurations.
- Supports iConomy v4, iConomy v5, iConomy v6, BOSEconomy v6, BOSEconomy v7, Essentials Eco, MultiCurrency and Vault.
- Permission nodes using superPerms
- Custom welcome message
Permissions
These are the superPerm nodes you can use to tweak the default permissions.
- lottery.buy : Gives you all the basic rights /lottery (buy, help, winners).
- Given to all players by default, so you need to remove from the users/groups you don't want to have.
- lottery.admin.draw : Gives the group/user access to the /lottery draw command.
- Given to OP's by default.
- lottery.admin.addtopot : Gives the group/user access to the /lottery addtopot command
- Given to OP's by default.
- lottery.admin.editconfig : Grant access to edit/reload the lottery config ingame
- Given to OP's by default.
Commands
- /lottery : Basic information
- /lottery buy <number> : Buy one or <number> of tickets.
- /lottery help : Help pages
- /lottery winners : List over 10 last winners
- /lottery draw : Force the drawing to happen. Op only if not permission plugin.
- /lottery addtopot : Adds extra money/items to the pot. Op only if not permission plugin.
- /lottery config <cost/hours/max/maxTicketsEachUser/reload> : Change/reload the config ingame.
Configuration
In the configuration that is made when the plugin is run the first time, you don't get comments about the different options. Here you do!
Click here to check out the explanation to the configuration :)
Tutorial
PS: The /lottery claim command is used when you are using material and you win, since blocks/items can only be given to online players
-
View User Profile
-
Send Message
Posted Jul 7, 2012I've got no real complaints, looks like bukkit's timer function is still as unstable as ever though.
-
View User Profile
-
Send Message
Posted Jul 4, 2012Im guessing this plugin still works?
-
View User Profile
-
Send Message
Posted Jun 25, 2012For some reason, the Lottery has broken, it was working fine the other day, I have no Idea what happened, It says Lottery Draws in 0s! Or Lottery is to be drawn soon! Something relative to that, do you know if this is a glitch? Or is it something wrong that I did?
-
View User Profile
-
Send Message
Posted Jun 25, 2012@xeNiumw0w
What error message?
-
View User Profile
-
Send Message
Posted Jun 24, 2012Typing /lottery addtopot will make a error message on the console (Not critical but well It's annoying for me)
-
View User Profile
-
Send Message
Posted Jun 17, 2012@ms0244412
There are two modes of lottery, one where you have an unlimited number of tickets available, but someone always wins, or a set lottery, where there are 'X' tickets and its possible for there to be no winners.
In the second version, all the money in the pot rolls over as a jackpot.
'ClearExtraInPot' is not related to the jackpot at all, this refers to the 'admin extra' you can add to a lottery. You can either have a set 'extra' that is added to the pot every round, or a one off amount, you can add on occasion. This is used so staff can add money to the pot, without actually buying tickets and having a chance to win.
-
View User Profile
-
Send Message
Posted Jun 17, 2012@khobbits
Hey, I'm having an issue. Whenever the lottery ends, the jackpot goes back to 0, if I disable ClearJackPotAll, the jackpot keeps going up until someone ones, and its quite rare for someone to win, so the jackpot goes all the way to $2 mil from $100k!
-
View User Profile
-
Send Message
Posted Jun 13, 2012Anytime someone buys or someone wins it displays the message twice!
-
View User Profile
-
Send Message
Posted Jun 10, 2012@ToXcWaStEBoY1
If your having trouble check your server log to see if there are any errors shown in there. If you see nothing on start, you might want to throw it into debug mode, try it, and pastebin me a server log.
-
View User Profile
-
Send Message
Posted May 31, 2012Works really well. Great plugin!
-
View User Profile
-
Send Message
Posted May 28, 2012My version 1.2.5 R.01, when it goes to 0 seconds left nothing happens and even if i /lottery draw still nothing happens, people can buy tickets but nothing happens when it says its going to draw
-
View User Profile
-
Send Message
Posted May 27, 2012Can you add translation message? =)
-
View User Profile
-
Send Message
Posted May 26, 2012@LordKainzo
Im not able to reproduce this on latest CB R3.1 dev. Any instructions?
-
View User Profile
-
Send Message
Posted May 23, 2012@LordKainzo
Don'tcha love it when it wont tell you which line it breaks on, don't suppose you can give me some more information, such as if the error only appears after a /reload, or only during startup/shutdown?
~ KHobbits
-
View User Profile
-
Send Message
Posted May 23, 2012<<reply 682191="">>
Latest versions of CB (dev) this is happening..
2012-05-23 08:07:05 [WARNING] Task of 'Lottery' generated an exception
java.lang.NullPointerException
at net.erbros.lottery.LotteryGame.getWinner(Unknown Source)
at net.erbros.lottery.Lottery.lotteryDraw(Unknown Source)
at net.erbros.lottery.LotteryDraw.run(Unknown Source)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:588)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:506)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
-
View User Profile
-
Send Message
Posted Apr 30, 2012For anyone not paying attention, that is me, on my other account \/
-
View User Profile
-
Send Message
Posted Apr 30, 2012@08havoc
It didn't mean that no, although I use a special blend of register, which plays well with vault.
@leithal7
Read the faq at the top of this page?
~ Khobbits
-
View User Profile
-
Send Message
Posted Apr 30, 2012My player complain that it the money ALWAYS goes to the pot. How can i change this? Thanks in advance,
-Leithal
-
View User Profile
-
Send Message
Posted Apr 30, 2012Your config http://dev.bukkit.org/server-mods/lottery/pages/configuration/ setup says supported by register. Does this mean vault as well?
-
View User Profile
-
Send Message
Posted Apr 30, 2012@ThaSourceGaming
Before I forever add you to my eternal ignore list, have you actually tried the plugin to see if it works? I find it hard to believe this plugin would be broken by any recent update.
~ KHobbits