MonitoringMinecraft MonitoringMinecraft

Discord_Integration

Плагин FoliaPaper

Плагин для Майнкрафт: добавляет интеграцию с Discord на сервер.

26 скачиваний 0 подписчиков
Оцените первым

📊 DiscordStats — Discord Bot Embedded in Your Server

DiscordStats embeds a fully functional Discord bot directly into your Folia/Paper plugin. Drop a single .jar into your plugins/ folder — no Node.js, no secondary HTTP server, no separate script to run.


📋 Description

DiscordStats bridges your Minecraft server and your Discord community in the simplest way possible. All data is read live from Bukkit on every command — nothing is stored in memory between calls. Your players and admins can query the server directly from Discord using three slash commands, at any time, without ever opening the game.

The plugin uses JDA 5 (Java Discord API) bundled into the jar via Maven Shade. Communication between the JDA thread and Folia's main thread is handled through a CompletableFuture with a configurable timeout, preventing any silent deadlock.


✨ Features

  • 🤖 Embedded Discord bot — fully self-contained, no external runtime needed
  • 📡 Live data — all stats are fetched directly from Bukkit on every request
  • Folia-safe — uses GlobalRegionScheduler, no thread violations
  • 🔁 Slash commands registered automatically on startup
  • 👤 Offline player stats supported — no need to be online
  • 📈 TPS reported over 1min, 5min, 15min
  • 🔄 Hot reload via /dstats reload — no restart needed
  • 🎨 Adventure API — no deprecated ChatColor
  • 💬 Rich colored Discord embeds
  • ⏱️ 5s timeout if the server is under load — no silent freeze

💬 Discord Slash Commands

Command Description
/server TPS, memory usage, uptime and world info
/players Online players list with world and ping
/stats <player> Full stats for any player, online or offline

📜 In-game Commands

Command Description
/dstats reload Hot reload the plugin configuration

⚙️ Configuration

discord:
  token: ""               # Your Discord bot token
  guild-id: ""            # Your Discord server ID
  timeout: 5              # Timeout in seconds for Bukkit thread calls

Setup:

  1. Go to discord.dev/applications and create a new application
  2. Add a bot, enable the required intents, and copy the token
  3. Paste the token and your guild ID in config.yml
  4. Restart or run /dstats reload
  5. Slash commands will register automatically

🖥️ Compatibility

Platform Version
Paper 1.21.x
Folia 1.21.x
Java 21+
API Paper API 1.21.1-R0.1-SNAPSHOT

📦 Installation

  1. Download the plugin
  2. Place it in your server's plugins/ folder
  3. Restart the server
  4. Configure plugins/DiscordStats/config.yml with your bot token and guild ID
  5. Slash commands are registered automatically — no manual setup needed
Смотри также

Похожие подборки плагины — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
810 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
MigosMc
MigosMc Java + BE
636 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
SeasonEra
0 онлайн
26.1.2 версия
Выживание • Экономика • Кланы • Приваты • Донат
PLIRGAME - ДЕВУШКИ ВОЙС ЧАТ
29 онлайн
1.21.10 — 26.1.1 версия
❤️ Выживание! ❤️ Войс Чат ❤️ Девушки ❤️ /free
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат