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
@John19800
Pex bug, forward to him, or try updating.
@khobbits
I have all the permissions. lt's not saying I'm missing permissions either.
@andrewkm
hmm, its hardcoded dynamically so buying 1 ticket extends it less than say 200 tickets If it was simple for players to endlessly extend lotteries easily, I think they'd just troll with it.
Edit: Added the extra variables in v0.8.0
@RicardoForce Have you tried giving permissions?
@khobbits
A set amount would be nice. So we can set it as say 5 minutes if any ticket is purchased. Thats pretty much what I would use. Someone buys a ticket, in the last 5 minutes, lotto extends by 5 minutes.
So maybe a lottoextendedtimeremaining option - set to 5 minutes and a extendtimeby option - set to 5 minutes
4:59 remaining, someone buys ticket, goes up to 9:59 Basically lotto would never end and people would rage make it huge :D lol
None of the lottery commands work. It just shows "/lottery" or "/lot" in the chatbox when I type a command.
@lawliet555
I'm not really planning on extending this plugin in this fashion. While I may continue to add minor features, I'm mainly planning on simply maintaining the plugin, than making it overly complicated.
@Switch0r
Whoops, should be fixed (0.8) http://dev.bukkit.org/server-mods/lottery/files/41-v0-8-0/
Would it be possible to implement 3 separate lottery's ( Daily, Weekly, Monthly)
Thx
I am back on v0.7.6 for CB 1.1-R6 Mar 02, 2012
v0.7.7 is bugged :p
You can buy as many tickets as you want in v0.7.7
I am sure you will fix it soon :)
@andrewkm
I wrote it to be a small amount, that got larger the bigger amount of tickets bought. 1 ticket should be about 15s, 100 tickets 30s, 1000 tickets 60s.
I could add a variable to it, if someone wanted it.
Is there any way to choose how long the extra extended time is or is it a hard coded set amount?
@TorgusAmorgus
Trying one of the builds in the download list? 0.7.6+ Work fine on 1.2.3
@khobbits
just on the off chance that there was something that you could suggest :(
are there plans to update to latest?
I know you are busy with essentials though!
@TorgusAmorgus
Have you tried looking at the download list, to see what versions match up? You'll find 0.7.3 was never intended to work with the new bukkits.
lottery not enabling on my server :(
http://pastebin.com/stUwEpCj
running bukkit #2034 1.2.3-R0.1
@uberKat
It is complaining that pex isn't available... caused by pex's silly broken superperms overloading. No real idea what's going on, because you didn't post a proper server log.
Post a server log via pastie.org, so I can see what is actually going on. Regardless I'm 95% sure it is pex fault.
@Torados
decimals are separated by '.' not ','
Bukkit #2034 , latest PEX and iC6
Got this error:
http://pastebin.com/mqfswrhU
@rebel24
You updated to 0.7.6?
its working great for me on the 1.2dev builds without the account field and the timer is working great with the time code. Thanks great work! :)