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
Still using the R: v0.8.1 for 1.4.2 Mar 09, 2012 - on 1,4,6 xD no problems detected so far.
UPDATE TO CRAFTBUKKIT 1.4.6 PLEASE
Just added the 0.9.2 to a test server and got an error when there was no winner after it started. Using the recommended build 1.4.5 R1.0
@WeiJay
I don't code the random myself, i just use the built in java random. It isn't always the last player who buys ticket who wins, it is just random, based on java random.
Thank you for your plugin~ it's very interesting~ But we found a little strange thing... the winner is always the man who buy in the last. We think there is a wrong in "rand = (new Random()).nextInt();" this command. Or there is something wrong on me (maybe i do something wrong in my sever). Is it a question about "Random() & JAVA version" ?
When I set useiConomy=true, i reload and it goes back to false... Why?
@phlegacy
look at the numberoftickets option in the config file
@Silfiel
the latest version allows you to modify the messages in the config file.
To drain money from the economy, set up the reward percentage to below 100, so the reward is less than the total.
Hi, just a word to thank you for this plugin, it light up the life on the server.
I'm posting mainly because i have 2 wish for it. I'd love to be able to edit the text if your looking for a french translation; maybe make the text a separate/variable names file where i can edit it - so it will be easy to add multi-language support down the road if the plugin add/remove/mix things in the code. My second and last wish is if it was possible to make it work as a money eater/inflation killer on the server economy. I mean, you could set the prize as an item reward (itemid/qty) while buying tickets with in-game money.
In any case, thanks for working on this little gem, i raise my hat to you guys.
I kind of wish just like most lotteries, there's a possibility that no one will win. maybe implement a number system so that every ticket purchased has a certain number value so that when the lottery is drawn, it draws a number and the user (if there is any) has that number then they win the jackpot. Else, no one wins. This would make it a risk more than someone wins everytime.
@Wizardo367
The description above, clearly says this plugin supports superperms.
@Wizardo367
...
No Problem ... Take your time :)
@ImCane
Damn... Those are much harder to translate :( I'll see if I have time early next week.
@essentialsteam
Thx for the fast response! By the way could you also add an option to translate the time display in the "Welcome" message (Days,Minutes,and seconds ... ) and the variables in the "WinnerSummary" message (player and tickets) that would be great :D
Greetz Cane
@ImCane
The /lottery claim command is used, if you are not using an economy system and you use the item lottery feature.
Thus /lottery claim will collect the '100 gold ore' or whatever you have set up as the currency.
Hey :D Still love your Plugin and very glad that you have added the multi language Support! But could you explain me what /lottery claim mean or what it does. I dont know how to translate it...
Thank You ImCane
@Nikz11
This is not possible with superperms, or at least not the way you described it
@Dalek5961
Maybe in the next dev cycle, no promises though.
@ProjectInfinity
I like this, might drop it in, in the next patch.
Thank you very much for the update.
I'd love to see a "cooldown" timer to purchasing tickets. I don't want to disable the ticket purchase message, but at the same time I would like to stop people from spam-purchases.
I love this plugin. I also think you should make it so there can be up to 3 winners. I would also like to see an automatic jackpot option, so you could set $10,000 or so. Thanks!