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

ConsoleDiscord

Mirrors your Paper server console log to a Discord channel and lets you run Minecraft console commands from Discord via /mc or !mc, with access control and configurable log batching.

191
2
Все версииConsoleDiscord 1.4.0

ConsoleDiscord 1.4.0

Release1 нед. назад

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

[1.4.0] - 2026-04-10 🚀 Folia Support & Stability Release

✨ New Features

Folia Compatibility

  • Full Folia support - Plugin now works on both Paper and Folia servers
  • Automatic detection - Detects server type and uses appropriate scheduler API
  • Zero configuration - Works out of the box on both platforms
  • Region-aware scheduling - Uses global region scheduler for console commands on Folia
  • Async scheduler migration - All async tasks use Folia's new scheduler when available

Modrinth Update Checker

  • Automatically checks for new versions on startup via Modrinth API
  • Notification in server console and optionally in Discord channel
  • Configurable: update-checker.enabled

Config Auto-Merge

  • New config options from updates are automatically added to existing config
  • User values are never overwritten - only missing keys are added
  • No more manual config migration needed after updates

🐛 Bugfixes

  • Fixed: MAX_EMBED_SIZE_EXCEEDED error - Embeds are now split into groups that respect Discord's 6000 character total limit per message. Previously, multiple embeds could exceed this limit and cause ErrorResponseException: 50035
  • Fixed: Thread.sleep(1000) blocking server shutdown - Removed unnecessary sleep in onDisable(). The shutdown notification already uses blocking complete() call
  • Fixed: CommandSecurity race condition - Static fields are now thread-safe using AtomicBoolean and AtomicReference. Config reloads during command checks no longer cause inconsistent state
  • Fixed: SchedulerAdapter.isCancelled() always returning false - Folia tasks now properly track cancel state via AtomicBoolean, Paper tasks delegate to BukkitTask.isCancelled()
  • Fixed: Potential NullPointerException in MessageCleanup - Added null-safety check for jda.getSelfUser() during message cleanup
  • Fixed: Fragile JSON parsing in ModrinthUpdateChecker - Replaced manual indexOf()/substring() parsing with Gson for robust Modrinth API response handling

🔄 Changes

Scheduler Refactoring

  • New SchedulerAdapter class provides unified API for Paper and Folia
  • Replaced all Bukkit.getScheduler() calls with adapter methods
  • Console commands now use GlobalRegionScheduler on Folia
  • Removed busy-wait loops when cancelling tasks (cleaner shutdown)

Code Cleanup

  • Removed legacy org.example package (outdated duplicate code from pre-1.3.0)
  • Added Gson as provided dependency (shipped by Paper at runtime)

Technical Details

  • Auto-detection via io.papermc.paper.threadedregions.RegionizedServer class check
  • folia-supported: true flag in plugin.yml
  • Backwards compatible with Paper/Spigot servers

📦 Build Information

JAR File: consolediscord-1.4.0.jar Size: ~16 MB (with JDA shaded) Java Version: 21 Paper Version: 1.21.4-R0.1-SNAPSHOT (also supports Folia) JDA Version: 6.1.0


Migration Guide from 1.3.0 → 1.4.0

✅ Automatic Migration

All changes are 100% backwards compatible. Simply replace the JAR file!

New config options (like update-checker) are automatically merged into your existing config.yml on first startup - no manual editing needed.

Файлы

consolediscord-1.4.0.jar(15.29 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.4.0

Загрузчики

Folia
Paper
Purpur
Spigot

Версии игры

1.21–1.21.11

Загрузок

29

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

1 нед. назад

Загрузил

ID версии

Главная