iLottery
iLottery - A Bukkit plugin that adds lotteries to your server
Please use Lottery+ instead!
Please use Lottery+ instead!
Please use Lottery+ instead!
Latest version: 1.7.1
Bukkit version: 1.0.1-R1
Minecraft version: 1.0.1
- Features:
- supports Vault 1.2.3 or later
- config.yml allows owners to set custom values to the lotteries, the time of the drawings, allow permissions, and to allow a limit to the amount of tickets the players buy(NOTE: lottery values will not be set they have been drawn)
- broadcasts a reminder message to enter the lotteries
- an optional permissions reward
- Commands:
- Player Commands:
- /lottery - get list of player commands
- /lottery buy <day/week/month> <x number of tickets> - buy tickets for a lottery
- /lottery list - get list of lotteries
- /lottery list <day/week/month> - get list of participating players
- Console Commands:
- /lottery - get list of console commands
- /lottery list - get list of lotteries
- /lottery reload - reloads config
- /lottery reset - resets lotteries to config values and rewards players back with the tickets they bought
- /lottery history - list past lottery winners
- /lottery draw <day/week/month> - force draw a lottery
- /lottery buy <username> <day/week/month> <x tickets> - enter a player into a lottery
- /lottery list <day/week/month> - get list of participating players
- Player Commands:
- Permissions:
- lottery.* - enable all lottery permissions
- lottery.list - ability to list the lotteries
- lottery.buy - ability to enter the lottery
- Bugs:
- there have been no reported bugs so far
- there have been no reported bugs so far
- Future:
- Have any suggestions? please do not hesitate to share them in the comments below.
Feeling generous? Please donate
- Have any suggestions? please do not hesitate to share them in the comments below.
Been trying to find out exactly when this lottery draws so I can post it to our members who keep asking me :)
I am in Pacific Time, our Server is in Central Time. Is it Midnight? A sequence of times?
Thank you.
@Randude14
Ohh okay :D Ty
Is there a command to see a history or to see who won the last drawing?
@therealorgrin config values WILL NOT be set to the lotteries until they have been drawn. to force reset the lotteries use command /lottery reset
@Randude14
Ty for the efford! There is still a problem with the config... I still can't change the config for the winning amount and the price for each ticket. Another thing you might consider is to import: the money sign from iconomy like $ or £ ect...
Hmm it is like the first drawing is a default, and the one after that that is like the setting...
@therealorgrin
it took about an hour but i figured out what was going on and fixed it(hopefully) and added a new command for resetting lotteries to config values.
@Randude14
I still get that message and the /lottery list doesn't match my config, it doesn't even match the default config :(
/lottery list:
[iLottery] - draw list
Daily - Bid $10.00, Winnings: $20.00
Weekly - Bid $10.00, Winnings: $100.00
Monthly - Bid $10.00, Winnings: $1.000.00
@therealorgrin
found and fixed the problem. just download Version: 0.8. thanks for bringing that to my attention.
Bukkit 1578
iConomy 6.08
IL - 0.7
[iLottery] - littery is currently not enabled!
Why? What do i need more?
draw time: 15
message delay: 30
enable permissions: false
day ticket cost: 50.00
day starting pot: 2000.00
day max tickets: 10
day lottery enabled: true
week bid amount: 250.00
week starting pot: 10000.00
week max tickets: 10
week draw time: 3
week lottery enabled: true
month ticket cost: 1000.00
month starting pot: 100000.00
month max tickets: 10
month draw time: 1
month lottery enabled: true
@godgodgodgo
good idea i, but instead i just added "NAME lottery enabled: true" at the end of each lottery's settings.
/lottery enter <day/week/month> - enter a lottery These are ingame days, weeks and months right?
Suggestion: Add an option in the config to have a default time period and only allow certain time periods. e.g. If I only wanted weekly draws it would look like this:
Allowed Times: Week Default Time: Week
Then I could just do "/lottery enter" and i'd be entered in the weekly draw. If I tried to do "/lottery enter day" It would say "This lottery doesn't exist.
@Randude14
Ok thanks, I will try =)
@lawliet555
issue has been noticed and taken care of. and i made the config much simpler. now its completely dynamic. ;)
A major issue that I am noticing with your current dynamic pot is that on a reload it gets reset back to 0. Being on a server where we tend to keep a constant update on all plugins and do several reloads a day that would not work.
@Randude14
That seems a weird thing to group it with. It would be nice to be able to have a player be able to buy a limited number of tickets but still have a dynamic pot.
@SirMonsterSlayer
i have already implemented that to enable it, on the line "day has max tickets: true", set it to false and it will start the pot at 0 and increase when person buys a ticket
@lawliet555
i have already implemented that to enable it, on the line "day has max tickets: true", set it to false and it will start the pot at 0 and increase when person buys a ticket
A dynamic lottery pot would be a pot that increases in size every time a member buys a lottery ticket. It is the same thing SitMonsterSlayer is recommending. It would not be hard to implement either.
It would just require a basic counter
Lottery Pot = Lottery Pot +Tickets Purchased * Ticket Price
And when the payout happens
Lottery Pot = 0
Having this would allow for a more realistic lottery where players set the size of the lottery pot.
As I was saying in a previous post I would also love to see a function in it where when a players purchase(s) lottery ticket(s) a message comes into chat saying
<player> has purchased <Number Of Tickets> Lottery Tickets. Current Lottery Pot it <Size Of Lottery Pot>.
Thx
Sorry it seems I suck at explaining.
I want that the prize-pot increases when someone buys a ticket. If no one buys a ticket the prize will be 0!
@lawliet555
what is a dynamic lottery pot?
Do you know if you are going to add the function to have a dynamic Lottery pot?