AzLottery icon

AzLottery -----

A feature-rich lottery system for your Minecraft server



AzLottery
A feature-rich lottery system for your Minecraft server with GUI, PlaceholderAPI integration, and persistent YAML storage.

[hr][/hr]

✨ Features

  • Smart Ticket System - Flexible purchasing with configurable limits and pricing
  • ⏰ Automated Draws - Scheduled lottery events at custom intervals
  • Interactive GUIs - User-friendly interfaces for players and admins
  • Economy Integration - Seamless Vault support for transactions
  • ️ PlaceholderAPI - Full placeholder support for scoreboard/chat plugins
  • ️ Permission-Based Limits - Fine-tune ticket restrictions per rank
  • ⏳ Cooldown System - Prevent spam with configurable delays
  • Reminder Notifications - Automatic alerts before each draw
  • YAML Storage - Reliable data persistence

[hr][/hr]

Commands & Permissions

Command Description Permission
/lottery buy <amount> Purchase lottery tickets Lottery.Buy
/lottery status View current lottery info Lottery.Status
/lottery gui Open lottery GUI Lottery.Gui
/lottery togglebuymsg Toggle purchase messages Lottery.togglebuymsg
/lottery toggleremindmsg Toggle reminder alerts Lottery.toggleremindmsg
/lottery help Display help menu -

Command Description Permission
/lottery admin Open admin panel Lottery.Admin
/lottery draw Force immediate draw Lottery.Draw
/lottery addpot <amount> Add money to pot Lottery.Addpot
/lottery reload Reload configuration Lottery.Reload

  • Lottery.TicketLimit.<number> - Set max tickets (e.g., Lottery.TicketLimit.50)
  • Lottery.TicketLimit.Bypass - Unlimited ticket purchases
  • Lottery.cooldown.bypass - Skip purchase cooldowns

[hr][/hr]

️ PlaceholderAPI Placeholders

Code (Text):

%azlottery_drawtime%    - Time until next draw
%azlottery_gtickets%    - Total tickets sold
%azlottery_ptickets%    - Player's tickets
%azlottery_pot%         - Current jackpot
%azlottery_winner%      - Last winner name
 
[hr][/hr]

Requirements

  • Minecraft: 1.20 - 1.21.10
  • Server: Spigot/Paper
  • Java: 17+
  • Dependencies:
    • Vault (required)
    • Economy plugin (required - e.g., EssentialsX)
    • PlaceholderAPI (optional)

[hr][/hr]

⚙️ Configuration Example

Code (YAML):

lottery
:
  ticket-price
: 100.0               # Cost per ticket
  default-ticket-limit
: 10         # Max tickets per player
  draw-interval
: 3600               # Draw every 1 hour (in seconds)
  purchase-cooldown
: 60             # 1 minute cooldown
  pot-percentage
: 1.0               # 100% of sales to pot
 
  reminders
:
    enabled
: true
    times
: [300, 60, 10 ]           # Alerts at 5min, 1min, 10sec
 
  broadcast
:
    ticket-purchase
: true           # Announce purchases
    draw-result
: true             # Announce winners
    draw-reminder
: true           # Broadcast reminders
 
Message Colors: Use & codes in messages.yml
Code (YAML):

messages
:
  ticket-purchased
: "&aYou bought &e{tickets} &aticket(s) for &e${amount}&a!"
  winner-announcement
: "&6&lLOTTERY WINNER! &e{winner} &awon &e${pot}&a!"
 
[hr][/hr]

Installation

  1. Download AzLottery.jar
  2. Place in /plugins folder
  3. Install Vault + Economy plugin
  4. Restart server
  5. Configure in /plugins/AzLottery/config.yml

[hr][/hr]

Made with ❤️ by GamingHuzai
Version 1.0.0
Resource Information
Author:
----------
Total Downloads: 18
First Release: Oct 12, 2025
Last Update: Oct 12, 2025
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings