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
Works perfect here on 1597
Buying lottery tickets doesn't work for me. It seems to think the price is really high so no-one can buy :/ Please update this to 1.0.0
@dbizzzle
Sorry, I was thinking about another plugin of mine. I'm sorry I didn't answer your question correctly, and I'm glad you found the solution yourself :)
@Erbros
Ah okay, didn't try setting it to null/false
@lawliet555
I will probably implement something like this when I have time :)
I have seen a new lottery plugin that has a couple of features that I would like to request be added to your plugin. It would be epic to have a weekly and a monthly lottery as well as the daily one.
I looked at switching over until I saw just how much better the interface and reliability where in your plugin.
Thx
Sayomie
@ForsakenRealmz
clearExtraInPot: false
So I want there to always be $1,000+ in the Lottery Pot, but when I go to the Config file and put the "ExtraInPot" to 3000 it just goes away after the lottery is drawn. How do you fix this?
@dbizzzle
kahlilnc is right, you can just set broadcast: false
@dbizzzle
There is in config :O
You should make it possible to have no welcome message.
Any chance you can have the jackpot saved into a iConomy account.
The reason I say this is because when people buy from a admin shop on my server the money goes into a account called "AdminShops" I would like to add this plugin with the ability to buy a ticket to win all the cash spent on the shops.
So say I spend 200 on a axe from a admin shop. The "AdminShops" account is now 200... when a ticket is brought for 20 the "AdminShops" account is then 220 and the jackpot comes out of that account also... so you have a chance to win the 220 in the "AdminShops" account.
This would mean if no one buys a ticket the jackpot still goes up depending on what people buy.
So if I buy a normal axe it goes up by 200 if i buy a diamond axe it goes up by 1000 thus more people will want to bet in the lotto based on the things brought from shops.
Also then gives you a chance to win back what you just spent on shop items ;)
So yeah if that's possible please let me know ;) Cheers
Any chance that you could make it to where iConomy money bought tickets, but prizes could be item IDs?
Then, even cooler would be to have a list of prizes that it randomly selects from... or something like that. But mainly, having the ability to have money buy the tickets, but prizes be items.
Would love the simple option to have the lottery announce how much is in the pot every couple of hours, and maybe remind them with a short countdown when the Draw is happening.
Lots of my players stay logged in for long periods of time, and I have found they often forget about it. Some reminders might be helpfully, and push people to do it.
@bobbysmithyy
You find the link in the repository tab.
Source code?
@botskonet
Sorry, my mistake :) You are correct :)
Do you mean numberOfTicketsAvailable: 0 ? I see no maxnumberoftickets: 0 setting.
@botskonet
The easiest thing to do would be to set
maxnumberoftickets: 0
in config.yml :D
We've installed this last night and have set it up for every two hours. We also forced the draw ten times so we've have twenty or thirty draws and there has not been a single winner. What's going wrong? We're running CB1337 (git-Bukkit-0.0.0-1131-g86b7fa8-b1337jnks (MC: 1.8.1) ).