LuckyLotto icon

LuckyLotto -----

A light weight lottery plugin with jackpot, prizes!



** For this plugin Vault is Required **
Description:
Players can purchase tickets, win small cash prizes, or even hit the jackpot! The plugin ensures a fair experience with built-in anti-cheat measures and automatically growing jackpots as more tickets are sold.

Features:
  • Multiple Ticket Purchases: Buy up to 10 draws on a single ticket.
  • Realistic Lottery System: Tickets add to the jackpot, and draws occur at configurable intervals.
  • Small Cash Prizes: Players can win smaller prizes by matching 2-5 numbers.
  • Anti-Cheat Measures: Prevents ticket duplication and validates all tickets.
  • Customizable: Adjust ticket cost, jackpot growth, and draw intervals via config.
  • Detailed Status Command: Players can view the current jackpot, prize pool, and time until the next draw.
  • Automatic Ticket Check: Configurable in `config.yml` to auto-check tickets after each draw.
  • Multi-Currency Support: Automatically detects and uses Vault-supported currencies.

Commands:
  • /buylucky - Purchase a lottery ticket.
  • /checklucky - Check your ticket against the latest draw.
  • /luckystats - View the current jackpot, prize pool, and next draw time.
How It Works:
Players buy tickets for a chance to win the jackpot or smaller prizes. The jackpot grows as more tickets are purchased. After each draw, players can check their tickets, and the system will automatically pay out any winnings. The plugin also supports multiple ticket purchases, automatic ticket checking, and multi-currency support.


Configuration:
Customize the ticket cost, starting jackpot, prize pool, and draw intervals in the config.yml file.

Code (YAML):

# LuckyLotto Plugin Configuration

# The cost for a player to purchase a lottery ticket
ticket-cost
: 100.0

# The initial jackpot amount when the plugin first runs or after a reset
starting-jackpot
: 10000.0

# The starting prize pool amount when the plugin first runs or after a reset
starting-prize-pool
: 0.0

# The interval between lottery draws
# You can specify this in days, hours, and minutes for easier setup
# For example, 1 day 2 hours 30 minutes
draw-interval
:
  days
: 0
  hours
: 1
  minutes
: 0

# Enable or disable automatic ticket checking
automatic-ticket-check
: true

 

[​IMG]
[​IMG]
[​IMG]
Resource Information
Author:
----------
Total Downloads: 74
First Release: Aug 19, 2024
Last Update: Aug 20, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings