Lottery+
For those looking to donwload Lottery+ for MC Version 1.12.2, click here.
Description
What is Lottery+? Lottery+ is a simple and powerful lottery plugin that makes lotteries easy to make and fun to play! Why should you choose my plugin verses others? Other plugins tend to limit you on options and your lotteries, whereas mine possesses limitless options! For instance these lotteries can have extensive options such as Towny support, Item economies, Item rewards, ect... To get started, follow my step-by-step tutorial. Hope you enjoy it!
Supports
Features
- Supports limitless lotteries with dozens options! The world is your oyster!
- You can use '/lottery guic' to open a GUI to make the process easier to create your lotteries
- Supports Vault so you can tap into you server's local economy.
- You can attach a sign to a lottery so your users can use those instead of commands.
- Supports NuVotifier so you can rewards users for voting for your server.
- One of your users helped out with building something? You can rewards them tickets with '/lottery reward'
- One of your winners wasn't online during the drawing? No problem! Lottery+ will simply store their winnings in 'claims.yml' so that when he/she jumps on later they can simply use '/lottery claim'
- Your server not in fluent English? Or maybe you'd like the wording better on one of the messages? No biggie! Lottery+ pulls of it's messages from 'lang.properties'
- Want to do more than just have a pot on your lottery? You can also add all sorts of item rewards and you can even add a 'command reward' that dispatches through the console so that covers a lot of bases.
- Worried about players forgetting about lotteries? No problem. You can set in the config to remind players about them.
- Lottery+ also will check updates from time to time (set in config)
- Server restarting? No worries! Lottery+ will save and load your lotteries
- Fair warning: Lottery+ supports Java 1.8
- Didn't catch the last winner? Be sure to check 'winners.log'
Videos | Commands | Permissions
Tutorial | Gui Tutorial | Donate
FAQ
How do I start creating lotteries?
You can start creating them by following my thorough step-by-step tutorial. There are also some videos you can watch.
Are lotteries saved after my server reloads or stops?
Yes. Lottery+ is constantly saving it's lotteries to ensure they are up to date.
Do I need to install any plugins for Lottery+?
No, you do not need any plugins. It is recommended that you have Vault if you want to use your server's economy. Lottery+ also supports Towny and Votifier.
Where can I donate?
Right here. All donations are appreciated. ;)
Is there a way to edit the messages?
Yes. If look for a file called 'lang.properties', you can edit the messages in their.
Troubleshooting
Before reporting an error, please consider doing a complete reinstallation. If you have done this, please consider writing a ticket. Be sure to add your config.yml and lotteries.yml when writing your ticket (using pastebin is fine as well). Remember, the more bugs I squash, the better the plugin becomes!
To do list
- Some more types of rewards?
- Have any feature requests? Please don't hesitate to share your ideas!
@ewerai
I actually just checked on the coding for that command and apparently the person that uses that command gets rewarded instead of the player that was specified, but i am fixing to update which will fix this bug. For saving the lotteries, it saves when the plugin is disabled (mostly occurs when you stop the server), though i may add a command like "/lottery forcesave" in the future.
@kotpx3
its set to only one winner, though i may add something simular in the future.
@Randude14
Quick question, does a player have to be online to enter into a lottery? I've rewarded tickets to two players who were offline, and the lottery info says that two additional tickets were purchased but no new players were added to the entries. And also, I was wondering when the plug-in saves the lottery information. Is there a way to force a save or set it to save more often? Does it save when I use /stop?
@Randude14
It worked! Is there a way to have a pool of items and have everyone that enter receive something random from that pool of items? Or is it only one winner?
@kotpx3
Add an "s" to the end of "item-reward"
I have the item-only set to true but it doesn't give out items. It only gives out money that is in the pot. Is there a way to only give out items and not money in the pot? Im not sure what is causing this but players only get the pot money.
@andrewkm
Yes this does work with R5
Is this updated for the new R5 system?
@ewerai
It should be loading up past purchases if there were any
@Randude14
Awesome! Working nicely now. Pesky little s.. Well, now that I've rebooted the server there seems to be no record of any tickets that were already purchased, is that going to happen each time I reboot?
@ewerai
Oh ok! I see the problem. Replace "item-reward" with "item-rewards" and that should fix it ;)
@Randude14
I'm not sure if I've got the configuration correct. I've tried it with and without declaring pot amount for the specific lottery. And I've set item-only: true.. Here's a screenshot of my lotteries.yml and the in-game info screen:
@ewerai
Do the item rewards show up on the info page? They should.
Like the plugin so far, but I'm dying for my players to be able to see the rewards for an item only lottery. Was wondering if you could add an additional string in lotteries.yml that would replace the Pot string on the /lottery info page when item-only is true. Even when I set item-only to true, the default lottery pot will appear on the info screen unless I specifically set the pot to 0. Even a desc string for miscellaneous lottery descriptions for the info page would be helpful.
@bootscreen88
yes i have read your last comment, though i try to limit my updates, especially when they are only adding one simple line of code that fixes a small bug :/ sorry. Honestly i am not sure what else to do with Lottery+. I am waiting for more people like you to add more feature suggestions.
Randude14? have you read my last suggestion?
and i have a question. is it possible to set the drawing to a specific time, e.g. 20:00 (08:00pm)?
@UnitedFactions
Found where the bug was occurring :D when it was saving the lotteries it was saving the state of the timer running under "timer-runnning" (accidentally added an extra "n"), so when it loaded, it was trying to find "timer-running" so it was returning false therefore not running the timer. But it should work now, but you may have to restart your lotteries D:
anyways here is the download
@Randude14
Randude14, my lottery stopped working for the 3th time now, the sign freezes.
I have a good server and with version 0.52 or 0.5.1a it was working perfectly.
However does your plugin still listen to the old files saves and winenrs because I cannot seem to get my lottery working anymore. The timer freezes, and when I reacreate the sign it just collapes and doesn't save.
However I have the some lottery sign at 3 different places in 1 house so alot of people can join at the same time or watch the timer.
Please tell me if this is wrong and why my lottery has stopped working for the 3th time its kind of annoying for my users. :(
@MontegroDK
Your code would have been correct in past builds, but due to demands for multi-item support the format has changed. You "item-reward" section would simply be changed to this:
Hey, the lottery plugin is working perfectly fine now, however our Daily lottery ended and the winner can't seem to get the item, it says an internal error has occurred when they try to claim the item prize (the money prize goes perfectly) could someone point out what's wrong in my code?
-------------------------------------------------------------------------------------------------
Daily:
pot: 10000.00
ticketcost: 1000.00
time: 24
repeat: true
max-tickets: 10
min-players: 1
max-players: 10000
item-reward:
item-id: 277
stack-size: 1
DIG_SPEED: 3
DURABILITY: 1
LOOT_BONUS_BLOCKS: 1