Made for AnGames | mc.angames.xyz
AGLottery — a simple yet powerful lottery plugin for your Minecraft server!
Automated lotteries run on configurable intervals to keep your players engaged
Integrates with Vault for economy support (works with most economy plugins)
Players can place bids to enter the lottery — more bids = higher chance to win!
⚙️ Admin commands to manually start, end, and reload the lottery
Fully customizable messages and timings via config.yml
Permission-based commands for user and admin control
Perfect for survival, minigames, or economy servers looking to add some fun random rewards!
Features
- ⏰ Automated lottery runs every configurable interval
- ⏳ Configurable lottery duration and bid handling
- Random weighted winner selection based on bid amounts
- Economy integration via Vault for real-money prizes
- ️ Admin commands: /alotery start, /alotery end, /alotery reload
- Player command: /lotery bid <amount> to join the lottery
- Customizable messages and economy currency support
- ⚡ Lightweight, efficient, and easy to set up
Permissions
- aglotery.use — allows players to participate in the lottery
- aglotery.admin — allows admins to manage the lottery (start/end/reload)
Commands
Command Description Permission
/lotery bid <amount> Place a bid in the active lottery aglotery.use
/alotery start Start the lottery manually aglotery.admin
/alotery end End the lottery manually aglotery.admin
/alotery reload Reload the plugin config aglotery.admin
Code (Text):
Config.yml
#
# █████╗ ██████╗ ██╗ ██████╗ ████████╗███████╗██████╗ ██╗ ██╗
# ██╔══██╗██╔════╝ ██║ ██╔═══██╗╚══██╔══╝██╔════╝██╔══██╗╚██╗ ██╔╝
# ███████║██║ ███╗██║ ██║ ██║ ██║ █████╗ ██████╔╝ ╚████╔╝
# ██╔══██║██║ ██║██║ ██║ ██║ ██║ ██╔══╝ ██╔═══╝ ╚██╔╝
# ██║ ██║╚██████╔╝███████╗╚██████╔╝ ██║ ███████╗██║ ██║
# ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
#
# Author: SRS & AGDev
# Made for: AnGames | mc.angames.xyz
#
lottery:
interval-seconds: 3600 # How often to run the auto lottery
duration-seconds: 900 # How long the lottery lasts (in seconds)
messages:
lottery-start: "&fThe lottery has started! Enter &b/lottery bid <amount>&f to participate!"
not-running: "&cThe lottery is currently inactive!"
already-running: "&cThe lottery is already running!"
winner: "&b%player% &f wins the lottery and receives &b%amount%$!"
no-participants: "&fNo one participated in the lottery!"
bid-accepted: "&fYou placed a bid of &b%amount%$!"
no-balance: "&fYou don't have enough money!"
started-manually: "&fThe lottery was started by an admin."
ended-manually: "&fThe lottery was forcibly ended."
not-started: "&cThe lottery hasn't started yet."
reloaded: "&aPlugin configuration reloaded."