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
Why is it that "Jackpot" keeps winning the lottery even if people buy lots of tickets? It has won 7 times in a row. Config: (Edited it a bit to make it shorter) cost: 1000
hours: 36
clearExtraInPot: true
netPayout: 100
maxTicketsEachUser: 1
numberOfTicketsAvailable: 100
buyingExtend: enabled: false secondsRemaining: 30 extendBase: 15 extendMultiplier: 1.5
nextexec: 1346537102292
extraInPot: 0.0
jackpot: 13000.0
debug: false
lastwinner: Jackpot
lastwinneramount: 13000.0
Don't worry guys.
I'm still here.
The plugin still works.
I will update it if it breaks.
@essentialsteam
Thanks!
@KevinEssence
it does both.
Does this plugin make announcements on the lottory and do automatic drawing or does it require someone to do it?
@RiotShielder
What needs updating?
@Mickeyz96
User vault for economy and permission hooks.
NEED BAD HELP! Hey how do I set it up with Essentials Economy, it keeps saying I cat afford a ticket and that it costs gold ingots. i want to use essentials eco money to buy tickets. thanks
Yes, please update for 1.3.1!
Any chance of an update for 1.3.1
@leda200042004
You can configure the scope youself by editing numberOfTickets. By keeping it to zero there will always be a winner, and you don't need to think about scope.
Please help me !!
I Do not know how much is the scope of the lottery
1-99999999 ??
@Conderan Clear extra in pot, refers to the 'extra' that admins can add to the pot ingame. This can either be a set bonus so you add '1000' each round, or a one off. This option toggles this behaviour.
@Chibleader This plugin works with all eco plugins, just make sure the option is set to 'useiConomy: true'.
My server uses Essentials Eco and always has, is there a way to make this plugin work with that?
Would it be possible for you to make it so we could customize the Lottery messages? Such as [Lottery] No Tickets Where Bought This Round, What A Shame!. Where we could change the prefix to our server name, and the message to something like; Really? Were you too scared to buy tickets this time?
config:
useiConomy: true
cost: 10
material: 266
hours: 24
broadcastBuying: true
broadcastBuyingTime: 120
welcomeMessage: true
clearExtraInPot: false
netPayout: 90
maxTicketsEachUser: 100
numberOfTicketsAvailable: 1000
buyingExtend:
enabled: false
secondsRemaining: 30
extendBase: 5
extendMultiplier: 1.5
nextexec: 1343251147355
extraInPot: 100
jackpot: 172.0
debug: false
jackpotAccount: ''
lastwinner: Jackpot
lastwinneramount: 172.0
message:
welcome: '&6[LOTTERY] &fDraw in: &c%drawLong%'
So, if I set clearExtraInPot to true... what does that actually do for me?
@wallie321 @Curtis4321
As mentioned in the FAQ above, and the config guide....
numberOfTicketsAvailable: 0 <- when you set this option to anything other than zero, you create a set number of tickets to be bought. Ie if you set this to '100' and only 10 tickets are bought, there is a 90% chance of a rollover.
If you leave this at 0, someone will win every time.
As to factions tag... Factions doesn't add tags to player names, only to chat.
Hey nice plugin; one bug it removes the faction tag before a name... and what | Curtis4321 said is true i only had one winner and now it had already 7 rollovers since the V winning player
When ever the lottery draws it doesnt draw to a user... ;( it just draws to Jackpot
Could you have a config option that will draw the lottery everyday at X time?