A Lotto plugin made with Pocketmine.

Overview

LottoPlugin https://poggit.pmmp.io/p/LottoPlugin/

Features

  • Compatibility with Pocketmine 3.X.X
  • Full Customization
  • Automatic Launch
  • Automatic Draw

Usage

Initialisation

You have to install Pocketmine 3.X.X version.
You have to install EconomyAPI in your PMMP Server.

Commands

  • 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

Lotto Values :

Name Description Default
ticket-price Unity's ticket price 100
repeating-time The recurrence of lotto reminders (minutes) 15

Success :

  • win
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
  • no-winner
Name Description Type
messages.success.no-winner The message when there's none participant Success
  • repeating
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
  • ticket-buy
Name Description Type
messages.success.ticket-buy The message when you buy tickets Success
Parameters: Replaced by
{tickets} Tickets amount
{amount} Sum of buying
  • info-buyed
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
  • info-not-buyed
Name Description Type
messages.success.info-not-buyed The message when the person looks
his ticket number and does not have one
Success
  • loto-command-answer
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

Errors :

  • cant-buy-under-one
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
  • not-enough-money
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
  • didnt-enter-amount
Name Description Type
messages.errors.didnt-enter-amount The message when the person has
not entered an amount to buy
Error
  • usage
Name Description Type
messages.errors.usage The message when the person
does not enter buy or info in the order
Error

Changelog

1.0.0

  • First release !

Credits

Don't forget to Star this open-source repo ! GitHub Repo stars

License

Apache-2.0

You might also like...
A plugin to add more blocks to PocketMine

This plugin aims to add all blocks not included in PocketMine. As of right now the ExtendedBlocks plugin is required to add blocks with IDs above 255.

Plot and protection plugin for PocketMine-MP
Plot and protection plugin for PocketMine-MP

MyPlot Create, manage, and build in protected plots. Keep your builds safe from griefers! Official MyPlot precompiled builds can be found on Poggit at

A Pocketmine-MP (PMMP) plugin to help staff members enforce the rules of the server.
A Pocketmine-MP (PMMP) plugin to help staff members enforce the rules of the server.

StaffMode is an all-in-one Pocketmine-MP (PMMP) moderation plugin made to simplify the life of staff members.

A Pocketmine-MP (PMMP) plugin to prevent players from doing most glitches.
A Pocketmine-MP (PMMP) plugin to prevent players from doing most glitches.

AntiGlitch AntiGlitch is an all-in-one Pocketmine-MP (PMMP) plugin made to prevent as many known glitches. Setup Guide To start using the plugin, down

CrateKeyShopGUI Pocketmine-MP plugin which can be set in Config.yml file

CrateKeyShopGUI CrateKeyShopGUI Pocketmine-MP plugin which can be set in Config.yml file Depend FormAPI EconomyAPI PiggyCrate InvCrashFix Download Dow

Custom boss plugin for PocketMine-MP.

Bosses Custom boss plugin for PocketMine-MP. What is this plugin? This plugin adds entities that they have so much things to configure! How to create

This plugin adds custom pets to game for PocketMine-MP!
This plugin adds custom pets to game for PocketMine-MP!

ComplexPets A plugin that adds pets to game made by OguzhanUmutlu for PocketMine-MP. Command Simply type /pets and summon your favorite animal! Featur

Casino plugin for Pocketmine-MP

Casino A simple Casino plugin for Pocketmine-MP. Usage You can make people bet for in-game money and in return either they win the money or loose. Cha

🐕‍🦺 An Ultimate Pets plugin for PocketMine-MP.
🐕‍🦺 An Ultimate Pets plugin for PocketMine-MP.

SimplePets An Ultimate Pets plugin made by broki for PocketMine-MP. ✨ Features MySQL and SQLite database Anti sql injection All mobs in Minecraft Pets

Releases(2.0.0)
Owner
Very Lazy 🐸 - 4 years experience of Javascript. - Ethical Hacker.
null
✨An Ultimate NPC plugin made by brokiem for PocketMine-MP.

SimpleNPC An Ultimate NPC plugin made by brokiem for PocketMine-MP. ✨ Features Migration from Slapper supported! ✔ Right click to interact! ✔ NPC can

broki 53 Jan 1, 2023
Windowy is a transaction-focused temporary inventory generator made for PocketMine-MP

About Windowy is a transaction-focused temporary inventory generator made for PocketMine-MP. How to use Windowy comes with 3 registered inventories us

DayKoala ʕ•ᴥ•ʔ 19 Aug 12, 2022
Allows the connection of Minecraft: JE clients to PocketMine servers. Made for PM4

JavaPlayer Allows the connection of Minecraft: JE clients to PocketMine servers. Made for PM4 MCJE VER: 1.18.2 Need implemented Chunks (convert proble

kanison konkla 30 Dec 7, 2022
This Pocketmine-MP plugin is a plugin including a complete faction system.

SimpleFaction Simple faction plugin replacing FactionsPro which is no longer updated. Commands Command Name Command Description Available for /f help

Ayzrix 33 Dec 19, 2022
SpawnInLobby Pocketmine-MP plugin. With this plugin the player will always join the game at the default world spawn point

SpawnInLobby Pocketmine-MP plugin. With this plugin the player will always join the game at the default world spawn point

null 1 Jan 7, 2022
Plugin allowing to integrate marketing automation made by ActiveCampaign in Sylius.

The SyliusActiveCampaignPlugin takes care of creating and updating contacts, connections, orders, and abandoned carts on ActiveCampaign.

Webgriffe® 3 Apr 1, 2022
ScrimAZ is a plugin made to help find cheaters.

ScrimAZ is an anti-cheat made to find hackers.

Sayaka 1 Jul 24, 2022
Integrates the ClassicPress Plugin Directory and any plugin stored in GitHub (tagged with classicpress-plugin) in the ClassicPress Admin

ClassicPress Plugin Directory Adds a new screen in a ClassicPress Install where you can browse, install, activate, deactivate, update, delete and pagi

TukuToi 3 Dec 27, 2022
A PocketMine/Altay Plugin to morph yourself into a block

BlockMorph A PocketMine/Altay Plugin to morph yourself into a block Command To morph yourself into a block use this command: /blockmorph [BlockID|Bloc

Matze 7 Mar 22, 2022
A useful PocketMine-MP plugin that allows you to create crates in-game!

ComplexCrates A useful PocketMine-MP plugin that allows you to create crates in-game! Commands Main command: /crate Sub commands: create

Oğuzhan 8 Aug 26, 2021