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
Is it possible to add maximum lottery tickets per group?
Hello!!Could I translate your Lottery to Chinese? 請問我能將您的插件翻譯成中文嗎?
I have recently installed this plugin on my server but it is requiring players to use gold bars as the currency. I am running BOSEconomy as my economy plugin along with vault. I do not see anything about this in the plugins config
@deaddude22
This is the one with all the monies. (I get $3 worth of DBO points per day)
@essentialsteam
Never saw that account comment :O
@Erbros
Don't worry, I've replied to the ticket, its user configuration issue, although I've written a quick patch to prevent it from stack tracing in the future.
~ KHobbits (Too lazy to switch accounts)
@deaddude22
The error is happening on a line in the code calling a Vault API, and thus should not break. I'll try to figure out why it's breaking, but as long as Vault don't support HyperConomy I'm not overly concerned with it not working.
@Erbros
Deprecated code I'm guessing?
@deaddude22
This is likely due to HyperConomy, a plugin not listed as supported by Vault. I will try to figure out why this is happening, but it should be safe for anyone using a supported economy.
@EmberC
Is this still occurring on the latest dev of spigot?
I'm having an issue on 1.7 spigot where the lottery will draw a winner any time someone types /lottery. It works normally until the first draw.
I've submitted a ticket several days ago:
http://dev.bukkit.org/bukkit-plugins/lottery/tickets/51-lottery-continually-drawing-winners-ruined-economy/
@jessejl
It is possible. You can find the source here.
@jasonlee0801
Are you sure you stopped the server completely before changing the settings? The settings are saved when the server is stopping, and might thus override the changes you made. If you still have problems, please create a ticket.
@lolelf123
See the FAQ.
@HaltsLongBow
/lottery addtopot -99999999999
@Camaroz1
Other plugins support sign lottery, this is a simple one and does not. You might be able to achieve the effect you want with a sign command plugin though, if you really want to use signs with this plugin.
IS it possible to alter this plugin so if one person buys a piece of food it enters their name into the lottery by the district they are from and by gender.
How do you use MONEY to buy a ticket? I changed the material to money but it still says gold ingots....
Is it possible to add Permissions for giving different groups the right to buy different ammount of lottery tickets?
How do I make users pay in-game money to buy lottery tickets? (Not sure if this matters, but I use CurrencyCore)
I did the add to pot thing for 99999999999 but how do I get it back to the original 1000?
Will I be able to change to Language (Traditional Chinese) after the system release, I will declare by here (I use google translate Sorry)
can you make a Sign Lottery?
... nvm