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
Get this error with Bukkit 1818:
2012-01-29 10:14:38 [SEVERE] Error occurred while enabling Lottery v0.7.4 (Is it up to date?): For input string: "50,00" java.lang.NumberFormatException: For input string: "50,00" at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) at java.lang.Double.parseDouble(Unknown Source) at net.erbros.Lottery.Etc.formatAmount(Etc.java:298) at net.erbros.Lottery.Etc.loadConfig(Etc.java:120) at net.erbros.Lottery.Lottery.onEnable(Lottery.java:81) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:356) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:343) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
this is my config:
What does the name of the jackpot account mean?
@Erbros
Hey the only possible thing I can see this missing is...
1. Some sort of admin logs (Disabled by default) so we can review previous bought tickets, etc incase there is some sort of issue. Searching through the server log is painful :P
2. A feature: Ability to make some sort of "ending cooldown before draw" (Not sure how it would be called) - Basically when lottery time is coming to an end you can set a specific time where no purchases can come in for the lotto to draw. If purchase comes in within that time, it resets.
So basically say your ending cooldown is 3 minutes. If there is 45 seconds left, and someone buys a ticket, draw goes back to 3 minutes remaining. Untill finally no one buys any more and the thing draws. I think this would be tons of fun :)
I would love to see the lottery have weekly and monthly lottery's as well.
Thx
@coverth
Oh, I was mistaking you for somebody else. Sorry about that.
I will do this today, it's a really simple task. :)
All im after is the same as what you had plus this:
http://dev.bukkit.org/server-mods/lottery/tickets/19-any-chance-you-can-have-the-jackpot-saved-into/
A word of warning for everybody.
1. I will have a lot on my plate the next months, so creating this brand new version of Lottery will take some time.
2. Please add suggestions to what you want in this lottery now, as it's easier to add new features straight from the start.
3. The new version will have some sort of pluginStats, so I can see if anybody actually uses this plugin. This will be both anonymous and you can turn it off.
@coverth
Okay, I tried to implement this but quickly realized it would take A LOT of time. So instead I will be coding this plugin from scratch again.
This is something I have been thinking about for quite some time, and now it was time to finally do it.
@LordKainzo
Thank you very much for the lovely comment :) Very much appreciated :D
@coverth
I've restructured my coding into several classes and made the lottery take double values (so you can use 1.5 coins instead of just 1 or 2 coins.
I will be starting right now on multiple lotteries, but it will probably take some time.
Been 11 days :P
Currently sitting on the edge of my seat awaiting the update :P
Any news yet?
@Erbros
<3 lottery
Can you add a option for tickets available per day? I want my lottery to be drawn every 3 days (72 hours) but i would like if my players could only buy 3 tickets a day (24hr cooldown).
Also would be cool if I could give each person 1 free ticket every 24hrs just for logging into the server.
@coverth
Yep. ;) I've started working on some of the updates, not sure when you can expect to see the new version.
You back from Rome yet?
@craftopia
Good! I was (and still is) on vacation in Rome, so I don't spend much time on the internet. :)
@DarkMinecrafter
jackpot: Just holds the current amount of money or items in the jackpot. Not to be touched.
for what is jackpot configuaration ?
@craftopia
figured it out.
Is there anyway to make it so every lottery starts with a specified pot?
@godgodgodgo
I am, like andrewkm, using this plugin on 1.0. Please create a ticket and show me your config.yml, your console startup output and name your economy plugin.