▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/MPromoCodes
MPromoCodes

MPromoCodes

Simple, powerful & Folia-ready promo code system for Minecraft servers

Оцените первым
279
3
Все версииMPromoCodes 1.5

MPromoCodes 1.5

Release12.05.2026

Список изменений

MPromoCodes v1.5 — Storage & Integration Update

This update brings a major internal upgrade to MPromoCodes, adding Discord webhook integration, a new separated codes file, advanced storage options, anti-spam protection and new global settings.

Added

  • Added Discord webhook integration.
  • Added Discord webhook test command:
    • /codes webhook test
  • Added webhook logs for successful code redemptions.
  • Added webhook logs for failed code redemption attempts.
  • Added configurable webhook embed colors.
  • Added configurable webhook username and avatar URL.
  • Added codes.yml as a separate file for promo codes.
  • Added automatic migration from old config.yml codes to codes.yml.
  • Added automatic backup of old config as config-old.yml.
  • Added new storage system with multiple storage backends:
    • YAML
    • SQLite
    • MySQL
  • Added automatic YAML-to-SQL migration for redeemed code data.
  • Added anti-spam protection for failed redemption attempts.
  • Added temporary blocking after too many failed attempts.
  • Added configurable failed-attempt cooldown.
  • Added configurable block time.
  • Added general plugin settings:
    • debug
    • case-insensitive-codes
    • trim-code-input
    • min-code-length
    • max-code-length
    • use-permission
  • Added configurable server name for webhook logs.
  • Added new config messages:
    • anti-spam-blocked
    • anti-spam-cooldown
    • invalid-code-length

Changed

  • Promo codes are now stored in codes.yml instead of config.yml.
  • Admin menu now reads and writes promo codes from codes.yml.
  • Redeemed code data can now be stored in YAML, SQLite or MySQL.
  • The /code command now respects configurable input rules.
  • Permission required to redeem codes is now configurable.
  • Code length validation is now configurable.
  • Code matching can now be case-sensitive or case-insensitive.
  • Code input trimming can now be enabled or disabled.
  • Webhook logs now include more detailed redemption information.
  • Internal redeem storage has been refactored for better future compatibility.

Improved

  • Improved code organization.
  • Improved update compatibility for existing users.
  • Improved config structure by separating plugin settings and promo code data.
  • Improved admin workflow for managing promo codes.
  • Improved protection against invalid code spam.
  • Improved support for larger servers and networks through SQL storage.
  • Improved debug logging for redeem attempts when debug mode is enabled.

Fixed

  • Fixed promo code data being mixed with global plugin settings.
  • Fixed hardcoded redeem permission by moving it to config.
  • Fixed hardcoded code input behavior by making it configurable.
  • Fixed admin menu storage behavior after moving codes to codes.yml.
  • Fixed future compatibility issues with redeemed code storage.

Migration Notes

  • Existing promo codes from config.yml will be automatically moved to codes.yml.
  • The old config.yml will be backed up as config-old.yml.
  • A fresh config.yml will be generated with the latest settings.
  • Existing redeemed data from redeemed.yml can be automatically migrated into SQLite or MySQL when storage.auto-migrate-yaml is enabled.
  • Server owners should review the new storage section before switching to MySQL.

Why is the file larger now?

MPromoCodes now includes built-in SQLite and MySQL support. The required database drivers are bundled directly inside the plugin .jar, so server owners do not need to install any extra libraries.

Because of these bundled SQL drivers, especially SQLite native libraries for different operating systems, the file size is larger than previous versions. This is expected and completely normal.

New Config Sections

settings:
  enabled: true
  server-name: "survival"
  debug: false
  case-insensitive-codes: true
  trim-code-input: true
  min-code-length: 2
  max-code-length: 32
  use-permission: "mpromocodes.use"

anti-spam:
  enabled: true
  failed-attempt-cooldown: "3s"
  max-failed-attempts: 5
  block-time: "1m"
  reset-on-success: true
  webhook-log-blocked-attempts: true

storage:
  type: "YAML"
  auto-migrate-yaml: true

  sqlite:
    file: "storage.db"

  mysql:
    host: "localhost"
    port: 3306
    database: "mpromocodes"
    username: "root"
    password: "password"
    use-ssl: false
    table-prefix: "mpromocodes_"

Файлы

MPromoCodes-1.5.jar(16.15 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.5

Загрузчики

Bukkit
Folia
Paper
Purpur
Spigot

Версии игры

1.21–26.1.2

Загрузок

10

Дата публикации

12.05.2026

Загрузил

ID версии

Главная