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 Apr 17, 2013any update on progress?
-
View User Profile
-
Send Message
Posted Apr 3, 2013Working fine for me on CB: 2725 - Nice little addon to have on the server.
-
View User Profile
-
Send Message
Posted Apr 3, 2013@TWSSYesterday @zSwayz @goflish
The server I maintain this plugin for doesn't use the rollover feature, so I have no real evidence of it not working, but last time i was debugging it, it seemed to be working fine. I find the plugin works a lot better with the ticket number set to 0, so there is a winner every time.
Every 'slot' has a equal chance of winning, or at least as equal as i can make it using java rand function (which is a passible rand solution at best). So if only 20/50 tickets are bought, there is a 60% chance of rollover.
-
View User Profile
-
Send Message
Posted Apr 3, 2013Yeh I have always wondered the same thing of that player herz, one time when I was vanished and he obviously thought that he was alone, he sent out a command that he mistakenly put a fullstop in front of because it is next to the / , I can not remeber what it was and wonder too if he knew of a way to do it. @Drake63628
-
View User Profile
-
Send Message
Posted Mar 25, 2013@goflish
I'd love to know this as well. Too many rollovers :<
-
View User Profile
-
Send Message
Posted Mar 22, 2013I sell 50 tickets, it draws every 2 hours and 20-40 tickets sell each round.
I just checked "/lottery list" and the last 10 winners all went to jackpot.
Is it not working right? I'm using spigot 1.5.1
How would I increase the chance for there to be a winner?
-
View User Profile
-
Send Message
Posted Mar 18, 2013Hello! I have essentials eco and useiConomy: true
It seems to work but 1 ticket is $500 and it seems players need $1 more to buy a ticket? Any help?
-
View User Profile
-
Send Message
Posted Mar 18, 2013I have to ask...there was a player we had who won this 7 out of 10 times in a day, and each player had gotten the same amount of tickets every time. Is there a way that a player CAN hack this and win or was he just VERY lucky?
-
View User Profile
-
Send Message
Posted Mar 14, 2013We use an item for lottery; we had a jackpot that resulted in more items than the player had slots. The excess items did not appear (e.g. drop to feet).
This should fix it; change removeFromClaimList in this manner:
http://pastebin.com/h7DFMtXj
-
View User Profile
-
Send Message
Posted Mar 12, 2013@Kitten_Tails
Nope.
-
View User Profile
-
Send Message
Posted Mar 12, 2013Is it possible to win items AND money?
-
View User Profile
-
Send Message
Posted Mar 12, 2013Tutaj tłumacze po polsku!! https://www.youtube.com/watch?v=h_khZWqAKHM
-
View User Profile
-
Send Message
Posted Mar 8, 2013@DTACGaming
Deleting will never be possible, you are corrupting the config file. You could try setting the message to empty string however.
-
View User Profile
-
Send Message
Posted Mar 8, 2013ok. Would you mind doing that for me? Really like this plugin and its for my server.
Also it doesn't mention "Lottery draws in 1minute! type /lottery buy to buy some tickets."
could you add that?
Thanks bro
-
View User Profile
-
Send Message
Posted Mar 6, 2013@DTACFrostfire
Deleting it is not possible.
-
View User Profile
-
Send Message
Posted Mar 6, 2013hello, really love this plugin.
but i have a problem. It keeps reset the config (even if i edit the 1 in the jar be4 i put it into my server)
all i want to do is delete There was a total of (number of players) buying (number of total tickets)
i deleted it from the config in the .jar but it still says it in game.
(i did delete the old 1 + the folder on the server)
thanks :)
-
View User Profile
-
Send Message
Posted Mar 2, 2013@risen32
set numberOfTickets to 0
-
View User Profile
-
Send Message
Posted Mar 1, 2013How do you set it so that there's a winner every draw?
-
View User Profile
-
Send Message
Posted Feb 18, 2013@strontkever
I think i might have it set to be given by default in the plugin.yml... I don't know how pex deals with this.
-
View User Profile
-
Send Message
Posted Feb 18, 2013hmm players are able to buy tickets even without permissions set (PEX).. is that supposed to?