LottoPlugin ![https://poggit.pmmp.io/p/LottoPlugin/](https://camo.githubusercontent.com/3229cebc2f2ffce7a57de5ff67a8351d269e5c7771c969c10c9f0da9a5f63b15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d616465253230776974682d2546302539462539322539362d726564)
- Compatibility with Pocketmine 4.X.X
- Full Customization
- Automatic Launch
- Automatic Draw
You have to install Pocketmine 4.X.X version.
You have to install EconomyAPI in your PMMP Server.
- Lotto :
- Description : View the remaining lotto time and the current total amount.
- Permission : None.
- Ticket :
- Description : See the remaining lotto time and the current total sum.
- Permission : None.
- buy :
- Description : Buy tickets.
- Usage :
/ticket buy <amount>
- info :
- Description : See your tickets.
- Usage :
/ticket info
Configuration of config.yml
Name |
Description |
Default |
ticket-price |
Unity's ticket price |
100 |
repeating-time |
The recurrence of lotto reminders (minutes) |
15 |
Name |
Description |
Type |
messages.success.win |
The message when a person wins the lotto |
Success |
Parameters: |
Replaced by |
{winner} |
Winner's name |
{cashprize} |
Current total sum |
{participants} |
Participants's number |
Name |
Description |
Type |
messages.success.no-winner |
The message when there's none participant |
Success |
Name |
Description |
Type |
messages.success.repeating |
The message that repeats itself after a defined time |
Success |
Parameters: |
Replaced by |
{timeleft} |
Temps restant |
{cashprize} |
Current total sum |
Name |
Description |
Type |
messages.success.ticket-buy |
The message when you buy tickets |
Success |
Parameters: |
Replaced by |
{tickets} |
Tickets amount |
{amount} |
Sum of buying |
Name |
Description |
Type |
messages.success.info-buyed |
The message when the person looks his ticket number and has some |
Success |
Parameters: |
Replaced by |
{tickets} |
Tickets amount |
{amount} |
Sum of buying |
Name |
Description |
Type |
messages.success.info-not-buyed |
The message when the person looks his ticket number and does not have one |
Success |
Name |
Description |
Type |
messages.success.loto-command-answer |
The message when the person looks at the remaining lotto time and its sum |
Success |
Parameters: |
Replaced by |
{timeleft} |
Time left |
{cashprize} |
Current total sum |
Name |
Description |
Type |
messages.errors.cant-buy-under-one |
The message when the person enters a number less than 1 of tickets to buy |
Error |
Parameters: |
Replaced by |
{tickets} |
Input number |
Name |
Description |
Type |
messages.errors.not-enough-money |
The message when the person doesn't have enough money |
Error |
Parameters: |
Replaced by |
{tickets} |
Input number |
Name |
Description |
Type |
messages.errors.didnt-enter-amount |
The message when the person has not entered an amount to buy |
Error |
Name |
Description |
Type |
messages.errors.usage |
The message when the person does not enter buy or info in the order |
Error |
- Now supports PocketMine-MP 4.X.X.
Don't forget to Star this open-source repo ! ![GitHub Repo stars](https://camo.githubusercontent.com/27d789dcada5f3f4809e6f43881636fe0ed1a32f2e5b4fb33a691147d1150777/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4e79726f6b2f4c6f74746f506c7567696e3f7374796c653d736f6369616c)
Apache-2.0