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
also i was wondering if you can make the timer work a different way? id like to have a drawling once a day but i do a reset at least once a day which resets the timer. i just set up the lottery for once every 6 hours so it draws a few times a day. not sure if this was asked before now. thanks
@iTzVien
you need to set the number of tickets available to 0 in order for it to have a winner everytime. if you set a ticket limit theres a chance of no winner because it draws 1-100 even though you got number say 5 when you bought. if you set it to 0 then it pulls from the names listed as buyers
The lottery doesn't really work correctly or maybe not programming correctly. Because I put in "numberOfTicketsAvailable: 10" the first time it works for the first round. But the second, it doesn't want to reset the amount of buying. I always get "Either, you can't afford for a ticket, or you got 1 ticket already." I see, still 10 tickets available and I bought 0 ticket. Second problem, when lottery works, I found out that every last player buying the last ticket, wins. It's that suppose to be like that ?
Question: It's the hours program with the real hours or in the time of minecraft ? Thanks very much, hope you will reply ! Good day.
Can you PLEASE support YetiPermissions?
Umm i need help, idk why but when i buy a ticket or any of my other players does and i do /lottery draw. it always says No Winner. [amount of money] has gone to jackpot and i always get that. and when i test it and bought a ticket and drawed it and i still get teh same problem even tho i am the only persoon who bought a ticket. heres my config :
config: cost: 30 hours: 4 nextexec: 1329114585769 material: 266 useiConomy: true broadcastBuying: true welcomeMessage: true extraInPot: 0 clearExtraInPot: false netPayout: 100 maxTicketsEachUser: 15 numberOfTicketsAvailable: 100 jackpot: 2700 debug: false lastwinner: Jackpot lastwinneramount: 2700 message: welcome: '&6[LOTTERY] &fDraw in: &c%drawLong%' so HELLLP! :( i really like this plugin
00:31:55 [INFO] [LOTTERY] There was in total 1 player buying 2 tickets 00:31:55 [SEVERE] java.lang.NullPointerException 00:31:55 [SEVERE] at net.erbros.Lottery.Etc.getWinner(Etc.java:706) 00:31:55 [SEVERE] at net.erbros.Lottery.Lottery$LotteryDraw.run(Lottery.java:198) 00:31:55 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 00:31:55 [SEVERE] at java.lang.Thread.run(Thread.java:662)
Could you maybe add sign support?
for example by typing: [Lottery] buy it will implement when a player right clicks on said sign, one would buy a ticket.
@Erbros
Alright I have fixed the errors :D, unfortunately the countdown is the only thing ending the lotteries until I fix duplicating issues D:
For Translations?? in italian i want to Translations in italian
@maxthekiler
change in config to
useiConomy: true
@andrewkm
Yes, I would think that is the most stable one. It would shock me if 0.7.4 is stable as I've added and changed so much in that version, but I really don't know.. :)
@Erbros
Which version do you recommend be most stable? Im assuming 0.7.3 (Which is what im running) ...
hi, i trie to buy an ticket, but it doesnt work!
first i trie /lottery buy -> either you cant afford, or you have 1 ticket already
than i see when i typ /lottery -> you can buy 1 ticket for 10 GOLD INGOT <- ???? was tun????
@GimmeCookie
Try writing 50.00 instead of just 50
@Randude14
I'll remove it until you have fixed your problems. Please reply here when most of your problems are gone and I'll probably add the link again :)
@andrewkm
-Sorry, but yes I am :/ I unfortunately don't have enough time to work on my plugins anymore, and now I can finally end this project as somebody have created a better lottery plugin (but keeping the same idea). I think the Lottery+ project looks great, and I think everybody using my plugin will be more than happy with Lottery+ :)-Hmm, it seems Lottery+ is having some problems.. I'll remove my link until more users are replying with better reviews than currently.. But I think the idea is very nice.
@Erbros
Your not dropping this are you?
@Erbros
Thanks for referencing your plugin to mine! It helps with the getting more downloads :D
@QweSteR2221
Awesome! :D
Lottery+ http://dev.bukkit.org/server-mods/lotteryplus/ (Lottery+_V0.1.1 for CB 1.1-R3 )