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
-
View User Profile
-
Send Message
Posted Oct 29, 2011@nickbouwhuis
I've made a ticket out of you comment :) Thank you :)
-
View User Profile
-
Send Message
Posted Oct 29, 2011Can 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
-
View User Profile
-
Send Message
Posted Oct 28, 2011@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.
-
View User Profile
-
Send Message
Posted Oct 27, 2011I 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
-
View User Profile
-
Send Message
Posted Oct 25, 2011oh im sorry i didnt see that im still on 1317 ;-( sorry and thanks
-
View User Profile
-
Send Message
Posted Oct 24, 2011@R4Z0R49 You need a newer CB version. 1337 is a good one.
-
View User Profile
-
Send Message
Posted Oct 24, 2011Hello 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.
-
View User Profile
-
Send Message
Posted Oct 22, 2011thanks man i appreciate it! :)
-
View User Profile
-
Send Message
Posted Oct 22, 2011@TTlabambaTT
Made a ticket out of your request. I'll work on it when I have time.
-
View User Profile
-
Send Message
Posted Oct 21, 2011Just 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)
-
View User Profile
-
Send Message
Posted Oct 21, 2011@Erbros
Good to know :)
-
View User Profile
-
Send Message
Posted Oct 21, 2011@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 :)
-
View User Profile
-
Send Message
Posted Oct 21, 2011it 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 :/
-
View User Profile
-
Send Message
Posted Oct 20, 2011@TTlabambaTT
Try /lottery config cost 1
-
View User Profile
-
Send Message
Posted Oct 20, 2011hmm 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?
-
View User Profile
-
Send Message
Posted Oct 20, 2011Working on my server (CB1337) brilliantly thanks again!
-
View User Profile
-
Send Message
Posted Oct 19, 2011Brilliant thank you! will be downloading this when i get home. :)
-
View User Profile
-
Send Message
Posted Oct 18, 2011@TTlabambaTT
Done coding it now :) Released in Lottery v 0.7.0
-
View User Profile
-
Send Message
Posted Oct 15, 2011@Erbros
Wow very quick reply thank you! :)
-
View User Profile
-
Send Message
Posted Oct 15, 2011@TTlabambaTT
I made a ticket based on your suggestion, so I will work on this when I have time :)