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
Does this plugin use vault? If not, can you put it in?
@wAveCrafters
DO you have the required materials or currency? It defaults to gold!
I got " You Can't afford a ticket " Message , please help !
***Send feature request ***
Maybe we could draw a 2nd and third prize too?
allocate 50% lotto funs for 1st, then 30 then 20 maybe something like that.
Might spread the wealth a bit more :D
My lotto get sup to 30k most days.
@bknysnake
Could you pastebin a copy of your config file?
Can you add an admin command to give users a lottery ticket (or more) like /lottery give [player] (amount) I know you can just give them the money/items for a ticket but id rather be able to force them to get one and not just save the money :P
ps having it work in console would be good ;)
Sorry last time i reported this I didnt actually witness it. Today I had some time for testing and it appears the jackpot is not reseting after a player wins. They collect the money and the pot remains the same. In one occasion 2 people won the pot after I did /lottery draw.
Im at work at the time of this writing. Once I get home ill search through logs for info on this.
FEATURE REQUEST A lot of my players forget about the lottery until someone buys a ticket. I have lottery machines all over the place but sometimes they get ignored. What would be nice if there was a configurable time for the plugin to announcer the lotterys jackpot and how long to draw. EG [Lotto] Jackpot currently $15,500 and draws in 2 hours 15 minutes
Something like that?
thanks, been using it for months without issue.
Great plugin, works perfectly!
Could you possibly add a feature that makes the lottery run from midnight to midnight? But say the server was started at 11am, it'd only run from 11am to midnight?
@bknysnake
That sounds somewhat impossible, have you got any logs from the event?
hey thanks that worked, now I have a new problem it appears I had 3 winners in 1 round which all won the same amount instead of it dividing, then the money rolled over again when the pot should have cleared... Any help here? thanks.
http://pastie.org/8041350
@joshwenke
Hehe, someone signed up to update notifications, damn that was fast!
I suppose not everyone knows that people who sign up for notifications get to see updates before they are approved by bukkit though.
(Keep that in mind however, since for all you know, some developers could go dark side and break your server)
@khobbits
Thanks for the update! :) keep updating the plugin, it's awesome!
Also, dont worry, this isn't abandoned, it just doesn't seem to actually need updates, I suppose I have a tiny update I can push though.
@bknysnake
Yes, just set the max number of tickets you want to sell, and if you sell less than that max number, the money will roll over.
Is it possible to make this plugin have no one win, keeping the money in the pot for the next round up?
Ahhh...ok. Thanks!
@ugmetuf
Hey. TaxTarget is the economy account you want the remainder of the netPayout to go.
Let us say you created an economy account called LotteryTax where you wanted the money that was collected in taxes from the Lottery plugin to go.
Now if you wanted 25% taxes, just put 75% in the netPayout.
I hope this explanation was okay =)
I have an issue with TaxTarget. It is probably my error, but I was hoping someone could help.
I have:
netPayout: 100 taxTarget: 75 and numberOfTicketsAvailable: 0 (every drawing results in a winner).
When the lottery is drawn, the tax doesnt seem to do anything. I thought if a ticket is $50 and they buy 2, $75 would go to the pot. When that didn't happen, I thought that maybe it was taken out of the winners pot. It wasn't.
Can someone explain what I am doing wrong?