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
At the current time I don't have the time to add new features to this plugin. This might change in the future, but probably not for a few months. I will however fix the plugin if it breaks.
One of the servers I have a partnership with uses this plugin, so while they use it, it won't go unmaintained.
I will accept well written pull requests for extra features as long as they don't break the existing functionality.
If @Erbros wants to continue working on lottery, that is also fine with me (although I suggest merging my branch into yours :P)
I'm going to ask this again... Since I got NO answer in the past few weeks now...
Is there a way to get it to say "Lottery Draw In: X amount of time" on an interval? I had to set up a broadcast to remind players we had a lottery between draws because it doesn't seem to do this automatically and I see no config option for it.
Even if there is a command that can be run through this plugin to display the time would be great. (aside from the /lottery) Then I could set it up to run that on an interval than a clunky broadcast.
I'd also like to ask, if this is possible or if not if it could be implemented...
Running TWO or MORE lotteries at a time, at different intervals for different resources. (Items OR Money) I've already got one that is using my economy, but the idea of being able to run one for an item resource appeals to me too...
If it at all possible, being able to make an item lottery, have it's tickets purchasable with economy money.
Example: Player buys 3 tickets for $10 each...
Lottery runs and at ends pays out 10 Diamonds
That's a terrible example... Of course I wouldn't do this without a high ticket number to increase the chances of it "rolling over". Though I guess this is more like a raffle idea than a lottery. XD
Thanks for creating and sharing this plugin. It works with CraftBukkit 1.6.2-R1.0, Java 1.7.0_25 (64-bit) on Windows 7 (64-bit) using PermissionsEX 1.20.2, Essentials Pre2.12.1.6, Vault 1.2.25
Request
Can we have multiple winner leader boards? For example,
/lottery top 10 - This would show the to 10 winners of all time
/lottery top 10 today - This would show the top 10 winners today
/lottery top 10 week - Top 10 for the week
/lottery top 10 month - Top 10 for the month
EDIT: The "Help Forums" link in the description seems to have been disabled.
Thanks,
LHammonds
@NinjaSteve13
Stop the server, edit the config, start the server.
The server saves the changes to the config when stopping the server, thus overwriting the changes you made in the meanwhile.
@NinjaSteve13
It's weird that it's resetting, are you sure you're saving the config file after you change it?
I've made many changes to my config, but we don't use items we use a virtual money system... And everything has stuck for me.
Is there a way to get it to say "Lottery Draw In: X amount of time" on an interval? I had to set up a broadcast to remind players we had a lottery between draws because it doesn't seem to do this automatically and I see no config option for it.
Even if there is a command that can be run through this plugin to display the time would be great. (aside from the /lottery) Then I could set it up to run that on an interval than a clunky broadcast.
how do i make the lotto tickets cost diamonds instead of gold ingots everytime i edit it in the config it resets after i start server
Downloaded the plugin, placed it in my plugins folder and it generated a folder without anything in it.
Hopefully this can get fixed.
@cuddyier
It randomizes between the players. The amount of tickets just give the randomizer a higher chance to choose ppl who bought tickets
i dont know if this is possible but if for example i could make it if someone wins the lottery they get a permssion for a /kit lottery?
@OfficialVeyern
Well You Should've Have Used A Test Server Or CONFIG IT PROPERLY!
@FrostbiteNZ
yes it is
Would be nice if this had an API to change the jackpot or other things within the plugin.
Working With 1.6.2?
@OfficialVeyern
The plugin developers didn't screw up anything, the lack of your effort to configure a plugin and testing it before adding it onto your actual server is idiotic. Try submitting a ticket for your problem instead of blaming it on the developers.
You guys just screwed up my whole economy to the extent where I had to reset it TWICE.
Players who do /lottery buy 50 somehow glitch the whole system and get the pot multiple times AUTOMATICALLY.
Can you please add craftconomy 3 support? I have it for my server and I REALLY want to use this plugin with money. Thanks!
@cuddyier
How many tickets can each player buy? How many tickets did the player winning several times in row buy? How many tickets were sold each round? How many had bought tickets in each round?
Even using the latest version isn't very random at times.. the same players are winning 2-3 times in a row eventhough there were quite a few tickets sold.
@LifeSentencePrison
Yes, look in the Features menu on this post... it says:
Supports iConomy v4, iConomy v5, iConomy v6, BOSEconomy v6, BOSEconomy v7, Essentials Eco, MultiCurrency and Vault.