🤑 Lottery 🤑

How do you want to have the variable provided?
The messages are standard Sponge TextTemplates, I know they look chaotic. I am planning to develop an easier system but for now you have to get along with it. Sorry.

Lottery draw in [3 hours]. {draw}.

Ok, I am going to develop a new system for text templates. Until that, I won’t add that new message you proposed. But thanks for your suggestions!

This error is thrown in console when a user tries to by a ticket. (Latest Version)

##v1.1 released!
The changelog can be found on the above page.


@IBG_Nova This fixes your crash.

Thanks for reporting! I’ll look into it.

Does this work on Sponge API 5.0?

I don’t think it will work. You can try it anyway. I’ll update the plugin soon.
@Riddle

Cool deal =) Thanks!

Ive been running API5. Its worked alright.
./lottery info doesn’t work, but other then that its good.

On API 5.1 with version 1.1 when I buy a ticket the lottery draws after 5-10 seconds, I tried changing the duration but its still the same

Does this only happen on api 5.1? And what duration value is in the config?

P1D it was PT4H before

Thanks for reporting, I’ll investigate this!

##v1.2 released!
The changelog can be found on the downloads page.


@Gershon I can’t reproduce the crash you posted here earlier and the drawInterval = P1D works correctly. Do you have any special setups?

No, but i’ll update to API 5 version and see if it still happens

http://pastebin.com/ucMGrkgg

Could you please try SpongeVanilla?

Request: Have a way to mail all players who entered into the lottery who won. Not all people are on when the winner is drawn, and wonder who had won. Also, lets the player the won know he won.
Have like a configured message.

Also, on my version, /lottery info doesn’t work.
Error in console:

I’m on:

Thanks!