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
@nickbouwhuis
I've made a ticket out of you comment :) Thank you :)
Can we set a time? I set the config file for every 24 hours but I want it to start on 15.00. Please add that optio
@RealTimeGamers
Hi. :) You are correct when you are assuming the money is vanishing into thin air. This setting is useful for server owners that want to remove some money from the system. I can make a ticket and perhaps make it a feature later so server admins can decide themselves if they want the money to go into thin air or in the jackpot.
I use the lottery plugin on my server. I have netPayout set to 80. With the 5 gold in the pot, the payout to the winner is 4 gold. But where does that 1 extra gold go? If you type /lottery, it says there is 0 in the pot after the draw. Clearextrainpot is set to false, so that is not the issue. It is vanishing into thin air, is there anywhere the gold would go to?
Please help, Thanks RealTimeGamers
oh im sorry i didnt see that im still on 1317 ;-( sorry and thanks
@R4Z0R49 You need a newer CB version. 1337 is a good one.
Hello Guys,
I seem to be getting an error once its done the first draw up untill this point it works without problems but then dies out once the server restarts. Any ideas?
[SEVERE] Error occurred while enabling Lottery v0.7.2 (Is it up to date?): Cannot store null
java.lang.IllegalArgumentException Cannot store null
i did try and use the help forums but i get an error saying to contact an admin.
thanks man i appreciate it! :)
@TTlabambaTT
Made a ticket out of your request. I'll work on it when I have time.
Just one last thing, Because 1 gold is still quite a lot would it be possible to change the cost to a decimal like "cost: 0.25" because it doesn't do decimals it just asks for an integer larger than zero when i try to change it in game. it doesn't even register when i change it in the config file it just reverts back to 1 gold. (my currency 100 silver = 1 gold)
@Erbros
Good to know :)
@TTlabambaTT
Sorry about that, you are absolutely correct! I had forgotten to change the ingame config changing to use the new configuration paths (not "cost" but "config.cost").
I've updated to 0.7.2 :) Thank you for your help :)
it says "lottery changed to 1" but then when i type /lottery it still asks for 5 gold and in my server 5 gold is a lot of money :/
@TTlabambaTT
Try /lottery config cost 1
hmm it seems that the cost doesnt have an effect at all. I changed it from 5 to 1 and it still asks for 5 dollars (using iconomy6) any ideas?
Working on my server (CB1337) brilliantly thanks again!
Brilliant thank you! will be downloading this when i get home. :)
@TTlabambaTT
Done coding it now :) Released in Lottery v 0.7.0
@Erbros
Wow very quick reply thank you! :)
@TTlabambaTT
I made a ticket based on your suggestion, so I will work on this when I have time :)