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 Nov 25, 2012Any way we can get this or lottery plus to run a command for the winner? Fr example if I were to set a VIP rank as the jackpot, can you implement it so it can run a command and use maybe a %player% variable or something so it will identify the winner,
Like if I were to do
/setrank %player% divine
As the jackpot command
-
View User Profile
-
Send Message
Posted Nov 24, 2012Cant afford ticket when we can?
-
View User Profile
-
Send Message
Posted Nov 22, 2012@khobbits or @Erbros . Can you make it possible for specific groups can buy multiple tickets and some can't? With permissions?
lottery.buy.3 - Can buy 3 tickets
lottery.buy.5 - Can buy 5 tickets.
Whereas the max amount a normal player can buy is 1.
-
View User Profile
-
Send Message
Posted Nov 10, 2012@joshwenke
Just did a fairly decent sized update to lottery, one of the changes was adding tl keys for most of the messages. I probably wont release a stable build till it has had time to be tested properly, but if anyone wants to try it:
http://ci.ecocitycraft.com/view/EcoCityCraft/job/Lottery/
-
View User Profile
-
Send Message
Posted Nov 10, 2012@khobbits
Thank you kindly for your reply! Great to hear, what a splendid little plugin, it's a great feature and we have hundreds of players who enjoy it.
I do have one recommendation, to make the formatting completely custom, thus being whitelabel- which happens to be quite important on my server. It's one of the few plugins we have which we allow to be non-whitelabel.
-
View User Profile
-
Send Message
Posted Nov 10, 2012It does still work on 1.4, those who are curious. We've been using the same version since 1.2.5 without issue.
-
View User Profile
-
Send Message
Posted Nov 6, 2012Will this work for minecraft 1.4.2?
-
View User Profile
-
Send Message
Posted Nov 4, 2012<<reply 1040055="">>
Thank you for the explanation!
-
View User Profile
-
Send Message
Posted Nov 1, 2012@ms0244412
Lottery relies on the linux/windows random number function.
As a rule of thumb, this function slightly biases the first and last numbers in a range, so if you ask windows for a random number between 1 and 100, 25% of the time, it will be between 1-10, and 90-100 (you'd normally expect 20%).
I don't think that this is significant to cause a major issue, but with any random number generator, patterns appear, but should fade with time.
-
View User Profile
-
Send Message
Posted Oct 31, 2012We did some tests, and there is a way to cheat the system, unless these 15 tests were all a fluke, this was the result:
The last person that buys the ticket within the last 1-30 seconds will win
-
View User Profile
-
Send Message
Posted Oct 29, 2012@Exagerate
No known ways to cheat this system. There are some servers that use this plugin where lotteries have been known to grow to be worth > 50USD, and have had people crawl my code for bugs, but as of yet, none have been reported.
-
View User Profile
-
Send Message
Posted Oct 29, 2012I've got a user on a large server who out of 201 tickets, managed to win yet again- he seems to have suspicious luck. Is there any way to cheat with this system? because if so I need to know about it or my users will keep complaining that it's fixed. I hope to hear back asap!
-
View User Profile
-
Send Message
Posted Oct 28, 2012Can you make a language file for this plugin? Thanks!
-
View User Profile
-
Send Message
Posted Oct 28, 2012@khobbits or @Erbros . Can you make it possible for specific groups can buy multiple tickets and some can't? With permissions?
lottery.buy.3 - Can buy 3 tickets
lottery.buy.5 - Can buy 5 tickets.
Whereas the max amount a normal player can buy is 1.
-
View User Profile
-
Send Message
Posted Oct 12, 2012@xphoenixxx
The jackpot feature is basically known in most popular lotteries as a "Roll over".
Basically, instead of just putting all the tickets in a pot and drawing from just the valid tickets, we put all tickets into the pot. If one of the tickets belongs to someone they get the money, if it doesn't, the jackpot rolls over to the next lottery.
-
View User Profile
-
Send Message
Posted Oct 7, 2012Please add the missing messages in the config file. I need it to translate the messages in my language. Otherwise your plugin is almost perfect
Greetz Cane
-
View User Profile
-
Send Message
Posted Sep 25, 2012Might I suggest a minimum players to draw option - and/or give a better explanation of jackpot (depending how it works a min player option may be unnecessary)
Jackpot to me says amount, but given you have an extrainpot setting, i am wondering if it is the number of tickets jackpot should be considered as having when drawing, and if its ticket wins.. you dont. Which going by previous comments is related to how it should work. Either that or a percentage chance of a player not winning.
Seems a bit vague at the moment.
ie, is jackpot -
If 1 player buys a ticket, and jackpot is set to 99. Does that mean:
a: that player has a 1 in 100 chance of winning - jackpot has 99 tickets player has 1.
or
b: that the next draw will have 99 plus value of tickets in the prize pool
player wins their 5 gold back and gets another 99 - winning 104 gold
or
c: there is an X percentage chance that jackpot will win instead of a player. - ie jackpot 50 means that if 2 players buy tickets they each have a 25% chance of winning. or if 5 players buy tickets, they each have a 10% chance (jackpot being 50% chance)
if jack pot is 99 then that last 1% is split between the entrance as a chance of winning. eg 0.5%
or
d: if the value of the pot is below 99 gold, the draw should jackpot instead of pay out
or
e: if the value of the pot is above 99, the draw may jackpot
or
f: somethine else entirely
-
View User Profile
-
Send Message
Posted Sep 10, 2012@Glacksy
Biggest problem is that players might not have the inventory space for this. Or may be somewhere unsafe.
Would be a pain to be given 500 gold, when you login, only to die 30s later to a zombie hord.
-
View User Profile
-
Send Message
Posted Sep 5, 2012"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"
what about removing the claim command and give the items to the player when he/she login to the server again?? :)
-
View User Profile
-
Send Message
Posted Aug 31, 2012@Graddod
You have set: numberOfTicketsAvailable: 100
That means that every lottery, 100 tickets go into the pot, and 1 gets pulled out. If 20 people buy a ticket, there is an 80% chance of jackpot winning.
Set this to zero to have a fair lottery.