COWMODSКаталог модов

ZyloLotto

A lottery plugin with an integrated player/admin GUI, with live animation, and its own database.

Автор: OnlyZylo1762обновлён 26 нояб. 2025 г.
Экономика

Описание

ZyloLotto – GUI-Based Lottery System for Minecraft 1.21

Note: This version supports multiple languages. Currently, German (de_DE) and English (en_US) are available.
Set your preferred language in config.yml. Additional languages will be added in future updates.

ZyloLotto brings a complete, easy-to-use lottery system to your server.
Players can buy tickets, watch live drawings, and enjoy massive winnings.

Everything is fully GUI-based – no complicated commands required.


Features

Ticket System

  • Players buy tickets directly through a GUI – each ticket is a randomly generated 5-digit code.
  • All tickets are saved automatically and increase the jackpot.

Jackpot & Economy System

  • Fully Vault-compatible, including automatic payout handling.
  • The jackpot grows with every ticket purchased or via optional autofill.

Animated Drawing

  • Winning numbers are displayed through a multi-stage animation with sound effects.

Intelligent Winner Detection

  • Automatically detects 2 to 5 correct numbers in the correct positions.
  • Winnings are distributed based on configurable percentage values.

Drawing & Winner History

  • Clean GUIs show past draws, winners, dates, and payout amounts.
  • All data is stored permanently.

Player Ticket Overview

  • Players can browse their tickets in a paginated GUI.
  • Admins can view or delete tickets directly.

Admin Menu

  • Complete lottery management through a dedicated admin menu.
  • Change jackpot, ticket price, delete winners or draws, modify autofill, enable/disable rollback, and more.

Automatic Drawing

  • Optional auto-draw that starts a drawing at regular intervals.
  • Interval can be set live via chat.

Test Drawing

  • Admins can run a test draw with any 5-digit number.
  • Perfect for testing or events.

SQLite Database

  • No setup required – lotto.db is created automatically.
  • The plugin handles saving tickets, drawings, winners, and jackpot values on its own.

Commands

CommandDescription
/lottoOpens the main lottery GUI
/lottodrawStarts a regular lottery drawing
/lottotest <12345>Starts a test drawing with fixed numbers

LuckPerms Permissions

PermissionDescriptionDefault
zylolotto.adminAccess to the full admin menu and all admin functionsop
zylolotto.drawAllows executing the official lottery draw (/lottodraw)op
zylolotto.testAllows executing test drawings (/lottotest)op
(no permission)Opens the lottery menu via /lottoeveryone

Required Plugins

  • Vault (1.7.3) – For economy integration
    (SpigotMC: Vault Plugin)
  • LuckPerms – For permissions management
    (Modrinth: LuckPerms)

Галерея

Lotto Menü SpielerAdmin MenüAnimationen Zylolotto

Последние версии

Все версии →
release

ZyloLotto 1.0.3

1.0.3
26 нояб. 2025 г.101Minecraft: 1.21.10bukkit, paper, purpur, spigot
Скачать
Что нового
# Changelog ## [1.0.3] - 2025-11-26 ### Added - **New File**: `AdminHolder.java` – Added to enhance security and administrative control. ### Fixed - **Rollback Functionality**: Fixed the rollback feature, which was not working since version **1.0.2**. It now works correctly again, ensuring the win calculation remains accurate. ### Changed - **GUI Structure**: Reordered some GUI classes for better organization and clarity. - **New Method**: `getCurrentPot()` – Returns the current pot value. .
release

ZyloLotto 1.0.2

1.0.2
26 нояб. 2025 г.20Minecraft: 1.21.10bukkit, paper, purpur, spigot
Скачать
Что нового
# ZyloLotto Changelog ## [1.0.2] - 2025-11-26 ### New Features - **Max Tickets per Player** - New configuration option `max_tickets` in `config.yml`: ```yaml max_tickets: 0 # 0 = unlimited, any positive number = max tickets per player ``` - Players can now only buy a limited number of tickets if `max_tickets` > 0. - **New language file entries** (`de_DE.yml`, `en_US.yml`): - `button.buy_ticket.lotto_status`: Shows the current lottery status (auto-draw on/off) in the buy button. - `message.max_tickets_reached`: Message when a player reaches the ticket limit. - `message.max_tickets_set`: Confirmation when the limit is changed. - `message.max_tickets_prompt`: Prompt to enter the limit in chat. - `button.set_max_tickets`: Button in the admin menu to set the limit. - **Admin Menu: Set Max Tickets** - New button in the admin menu (`AdminGUI.java`) to configure the maximum number of tickets per player. - New utility class: `MaxTicketsSetter.java` for chat input of the limit. --- ### Changes to Existing Features - **GUI Titles and Button Lore** - **MainGUI**: The "Buy Ticket" button now displays the current lottery status (auto-draw on/off). - **AdminGUI**: New "Set Max Tickets" button (slot 14) with dynamic display of the current limit. - **Language Files** (`de_DE.yml`, `en_US.yml`) - New entries for the max tickets feature (see above). - Adjusted lore for the "Buy Ticket" button to show the lottery status. - **Configuration File** (`config.yml`) - New option `max_tickets` (default: `0` = unlimited). --- ### Bug Fixes & Improvements - **GUI Navigation** - **TicketGUI**, **DrawHistoryGUI**, **WinnersGUI**: Improved title checking in `onInventoryClick` methods to prevent incorrect GUI interactions. - "Back" button in all GUIs now always returns to `MainGUI` (no direct closing). - **Code Structure** - Consistent formatting and comments in all new/modified classes. - New utility class `MaxTicketsSetter.java` for chat input of the ticket limit. --- ### Technical Changes - **Database & Backend** - No changes to the database structure. - Logic for the ticket limit integrated into `MainGUI.java` (buy button) and `ZyloLotto.java` (chat event handler). - **Build & Dependencies** - No new dependencies. - Maven Shade Plugin and Spigot/Vault dependencies unchanged. --- ### Summary of Changes | **Category** | **Change** | |----------------------|-----------------------------------------------------------------------------| | New Features | Max tickets limit per player, admin option to set the limit. | | GUI | New button in admin menu, lottery status in buy button. | | Language Files| New entries for max tickets feature. | | Configuration | New option `max_tickets` in `config.yml`. | | Bug Fixes | More robust GUI navigation, consistent "Back" button functionality. | | Version | 1.0.1 → 1.0.2 | --- ### Note for Users - **Backward Compatible**: Existing databases and configurations remain intact. - **Optional**: The new max tickets feature is disabled by default (`max_tickets: 0`).
release

ZyloLotto 1.0.1

1.0.1
25 нояб. 2025 г.23Minecraft: 1.21.10bukkit, paper, purpur, spigot
Скачать
Что нового
# ZyloLotto 1.0.1 – Changelog ## Neue Features - **Mehrsprachige Unterstützung** Das Plugin unterstützt nun **Deutsch (de_DE)** und **Englisch (en_US)**. Sprache in `config.yml` einstellen. - **Sprachdateien** Neue YAML-Dateien für jede Sprache (`de_DE.yml`, `en_US.yml`) im Ordner `/lang/`. Alle GUI-Texte, Nachrichten und Buttons sind nun lokalisiert. - **Dynamische GUI-Titel und Texte** Alle GUI-Titel, Button-Namen und Lore-Texte werden aus den Sprachdateien geladen und sind sprachabhängig. ## Verbesserungen - **Datenbank** Die `tickets`-Tabelle hat nun ein `UNIQUE(player, numbers)` Constraint, um doppelte Tickets desselben Spielers zu verhindern. - **Code-Refactoring** - Alle GUI-Klassen nutzen jetzt Sprachdateien für Titel, Lore und Nachrichten. - Konsistente Nutzung von `FileConfiguration` in allen GUI-Klassen. - Verbesserte Fehlerbehandlung und Logging bei Datenbankoperationen. - **Konfiguration** - `config.yml` wurde **überarbeitet und vervollständigt** mit klaren Beschreibungen für alle Einstellungen. - Auszahlungsprozente jetzt als Prozentwerte konfigurierbar (`two_correct_percent`, `three_correct_percent`, ...). - **Auto-Ziehung** Timer startet/stoppt nun korrekt, wenn die Einstellung in der Konfiguration geändert wird. ## Bugfixes - **Datenbank** Behebt ein Problem, bei dem der Jackpot nach einer Ziehung nicht korrekt zurückgesetzt wurde, wenn kein Gewinn ausgeschüttet wurde. - **GUI-Navigation** Behebt Probleme bei der Seiten-Navigation in den GUIs (z. B. `PlayerTicketsGUI`, `DrawHistoryGUI`), wenn Titel in verschiedenen Sprachen unterschiedlich formatiert sind. - **Chat-Eingaben** Behebt ein Problem, bei dem Chat-Eingaben für Admin-Befehle (z. B. Jackpot-Änderung) nicht korrekt verarbeitet wurden, wenn die Eingabe nicht rechtzeitig abgeschlossen wurde.
alpha

ZyloLotto

1.0
23 нояб. 2025 г.32Minecraft: 1.21.10bukkit, paper, purpur, spigot
Скачать
Что нового
Zylolotto Version 1.0