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 Feb 11, 2013I really like this plugin but you should add support for giving people tickets and not allowing them to purchase tickets. I want to make it so if they vote, they get a ticket.
-
View User Profile
-
Send Message
Posted Feb 11, 2013@ACT97
... 50 out of 500 tickets means 9 out of 10 times there will be no winners ...
-
View User Profile
-
Send Message
Posted Feb 11, 2013I got about 5 ppl to enter and no winners did it again no winners and again no winners, i just keeps happening no winners.
We all got 50 tickets out of 500, and no winners.
-
View User Profile
-
Send Message
Posted Feb 11, 2013@ACT97
Read this page... It's right in the FAQ...
-
View User Profile
-
Send Message
Posted Feb 11, 2013I down loaded the plugin today, I like the plugin until i drawed the lottery and it said no winners so i got everyone to buy 10 tickets and no winners again so i did it a third time and still no winners someone help me. PM if you know what is wrong or what i'm doing wrong.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@essentialsteam
Seems okay, been running for 24 hours with no sign of the NPE.
-
View User Profile
-
Send Message
Posted Feb 8, 2013@essentialsteam
Ohh ty, i didnt get that
-
View User Profile
-
Send Message
Posted Feb 8, 2013@ImCane
Should be all done, check the devb
-
View User Profile
-
Send Message
Posted Feb 8, 2013@ImCane
Hey :) Is the message fix still in progress? When you dont know what I mean Ive linked this post with it.
Greetz Cane
-
View User Profile
-
Send Message
Posted Feb 5, 2013@ProjectInfinity
Okie, patched, see devb.
-
View User Profile
-
Send Message
Posted Feb 5, 2013@khobbits
http://pastebin.com/zD16pseB (log is in reverse)
The previous link expired. It is caused by line 39. https://github.com/khobbits/Lottery/blob/master/src/net/erbros/lottery/LotteryGame.java#L39
-
View User Profile
-
Send Message
Posted Feb 5, 2013@ProjectInfinity
Calling the hasAccount method, should never return an NPE, drawing money from a none existing account, could, but that is not where you said the error was?
(I have no idea what the error is since your link doesn't work).
-
View User Profile
-
Send Message
Posted Jan 30, 2013@essentialsteam
But what if the economy plugin in question does not create an account on hasAccount? You run into NPE like I posted.
-
View User Profile
-
Send Message
Posted Jan 30, 2013@ImCane
Hey :) Is the message fix still in progress? When you dont know what I mean Ive linked this post with it.
Greetz Cane
-
View User Profile
-
Send Message
Posted Jan 28, 2013@ProjectInfinity
The tl issue is usually due to not properly restarting the server after upgrading the plugin.
The hasAccount check, is a trick to cause some eco plugins to create an account, if the user doesn't already have one.
@RayA210
Maybe in the future, i'd like to see this, but it would need a little rework
@KevinEssence
Maybe in the future, i'd like to see this, but it would need a little rework
-
View User Profile
-
Send Message
Posted Jan 23, 2013@khobbits
Same issue here, all commands and messages end up in invalid translation key. Lottery 0.9.2 on 1.4.7 beta.
Edit: This seems to happen if an economy plugin is not found. Fixed this with a Vault update so that economy plugin was hooking correctly again.
Edit2: found more issues. http://hastebin.com/lipiloviku.coffee
This is with Lottery 0.9..2, Craftconomy 3.0.4 and Vault 1.2.22. Might I suggest that you do something with the following check? It seems like you check if the player has an account, but you never do anything with it. https://github.com/khobbits/Lottery/blob/master/src/net/erbros/lottery/LotteryGame.java#L35
-
View User Profile
-
Send Message
Posted Jan 14, 2013Is it possible to add a countdown display in 30 second intervals a few minute before the lottery is about to process? I've found that many of my players get caught up in the game and forget about the lottery until someone buys a ticket.
-
View User Profile
-
Send Message
Posted Jan 10, 2013@khobbits
It was only that one time. Sorry I didn't reply sooner, I just forgot to tell you it was that one time :P.
-
View User Profile
-
Send Message
Posted Jan 9, 2013Any way to make a cool down for buying tickets? Great plugin by the way.
-
View User Profile
-
Send Message
Posted Dec 24, 2012@midnightfang22
Does this error still appear? Have you tried restarting the server?