▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/AuryxDiscord
AuryxDiscord

AuryxDiscord

Lightweight Minecraft-Discord integration without JDA. Two-way chat sync, server events, webhooks, embeds, and HTTP server. Modern alternative to heavy Discord bots with AuryxCore integration.

48
1

💬 AuryxDiscord - Lightweight Minecraft-Discord Integration

Version Minecraft Platform License

AuryxDiscord is a lightweight, high-performance Minecraft-Discord integration plugin built without JDA. Using modern HTTP clients (OkHttp + Jetty), it provides seamless two-way communication between your Minecraft server and Discord with minimal resource usage.


Key Features

💬 Two-Way Communication

  • Minecraft → Discord - Chat messages, events, notifications via webhooks
  • Discord → Minecraft - Messages from Discord appear in-game via HTTP server
  • Real-time sync - Instant message delivery with async processing
  • No JDA dependency - Lightweight HTTP-only implementation

🎮 Server Events Integration

  • Join/Leave Messages - Player connection notifications with custom formats
  • Death Messages - Death notifications with cause and custom formatting
  • Chat Synchronization - Full chat integration with AuryxChat support
  • Punishment Alerts - Ban/mute/kick notifications for moderation teams
  • Server Status - Startup/shutdown notifications

🎨 Rich Formatting & Customization

  • Discord Embeds - Beautiful rich messages with colors and timestamps
  • Player Avatars - Automatic player head integration via Minotar
  • Custom Formats - Fully customizable message templates for each event type
  • Placeholder Support - PlaceholderAPI and AuryxCore placeholder integration
  • Emoji Support - 🟢 Join, 🔴 Leave, ☠️ Death, ⚠️ Punishments

🔧 Advanced Configuration

  • Multiple Webhooks - Separate channels for chat, logs, deaths, punishments
  • Event Filtering - Enable/disable specific event types
  • Message Queuing - Anti-spam protection with configurable queue limits
  • HTTP Server - Built-in Jetty server for Discord → MC communication

🎮 Commands Overview

CommandDescriptionPermission
/auryxdiscordMain plugin commandauryxdiscord.admin
/auryxdiscord reloadReload configurationauryxdiscord.reload
/auryxdiscord test [message]Send test message to Discordauryxdiscord.test
/auryxdiscord infoView plugin status and integration infoauryxdiscord.info

🔄 How It Works

Minecraft → Discord Flow

  1. Event Detection - Listeners capture chat, join/leave, death events
  2. Message Formatting - Apply custom templates with placeholders
  3. Webhook Delivery - Send via OkHttp to Discord webhook URLs
  4. Queue Management - Async processing prevents server lag

Discord → Minecraft Flow

  1. HTTP Server - Built-in Jetty server receives Discord webhooks
  2. Message Processing - Parse and validate incoming Discord messages
  3. Chat Integration - Forward to AuryxChat or broadcast directly
  4. Security - Webhook signature verification for safety

📋 Message Examples

Discord Notifications

🟢 **Sqrilizz** joined the server (Players: 5/20)
[MC] Sqrilizz: Hello everyone from Minecraft!
☠️ Sqrilizz was slain by Zombie
⚠️ **Admin** banned **Griefer**: Griefing spawn area
✅ **Server started** - Players can now join!

Minecraft Chat

[Discord] DiscordUser: Hello from Discord!
[Discord] Moderator: Server restart in 5 minutes

⚙️ Configuration Highlights

Webhook Setup (config.yml)

webhooks:
  chat: "https://discord.com/api/webhooks/YOUR_CHAT_WEBHOOK"
  log: "https://discord.com/api/webhooks/YOUR_LOG_WEBHOOK"
  death: "https://discord.com/api/webhooks/YOUR_DEATH_WEBHOOK"
  punishment: "https://discord.com/api/webhooks/YOUR_MOD_WEBHOOK"

Event Configuration

events:
  join-leave: true
  deaths: true
  punishments: true
  console: false
  startup-shutdown: true

Message Formats

formats:
  join: "🟢 **{player}** joined the server (Players: {online}/{max})"
  leave: "🔴 **{player}** left the server"
  death: "☠️ {death_message}"
  ban: "⚠️ **{staff}** banned **{player}**: {reason}"

HTTP Server (Discord → MC)

server:
  enabled: true
  port: 8080
  path: "/discord-webhook"
  secret: "your-webhook-secret"

🌐 Platform Compatibility

PlatformStatusFeatures
Paper✅ Full SupportAll features available
Folia✅ Full SupportThread-safe implementation
Spigot✅ CompatibleCore features work
Bukkit✅ CompatibleBasic functionality
Purpur✅ EnhancedAdditional optimizations
Velocity✅ SupportedCross-server integration

🔗 Integration & Dependencies

Required Dependencies

Optional Integrations

Developer API

// Get AuryxDiscord API
AuryxDiscordAPI api = AuryxDiscord.getAPI();

// Send messages to Discord
api.sendChatMessage(player, "Hello Discord!");
api.sendLogMessage("Server event occurred");
api.sendEmbed("Title", "Description", "#5865F2");

// Check integration status
boolean enabled = api.isDiscordEnabled();
boolean chatSync = api.isChatEnabled();

🚀 Performance & Technical Details

Lightweight Architecture

  • No JDA - Uses OkHttp for HTTP requests (much lighter)
  • Async Processing - All Discord operations are non-blocking
  • Smart Queuing - Message queue prevents spam and rate limiting
  • Memory Efficient - Minimal RAM usage compared to bot-based solutions

HTTP Components

  • OkHttp Client - Modern, efficient HTTP requests to Discord
  • Jetty Server - Embedded HTTP server for receiving Discord messages
  • Gson JSON - Fast JSON processing for webhook payloads
  • Shaded Dependencies - No conflicts with other plugins

Cross-Version Support

  • Single JAR - Works on Minecraft 1.8.8 through 1.21.10
  • API Compatibility - Adapts to different Bukkit/Paper API versions
  • Legacy Support - Maintains compatibility with older server versions

📊 Setup Guide

1. Installation

  1. Download AuryxCore (required)
  2. Download AuryxDiscord from Modrinth
  3. Place both JARs in your plugins/ folder
  4. Restart your server

2. Discord Webhook Setup

  1. Go to your Discord server settings
  2. Navigate to Integrations → Webhooks
  3. Create webhooks for different channels:
    • #minecraft-chat - For player chat messages
    • #server-logs - For join/leave/death events
    • #moderation - For punishment notifications
  4. Copy webhook URLs to config.yml

3. Configuration

# Basic setup - just add your webhook URLs
webhooks:
  chat: "https://discord.com/api/webhooks/123456789/abcdefg"
  log: "https://discord.com/api/webhooks/987654321/hijklmn"

# Enable desired events
events:
  join-leave: true
  deaths: true
  punishments: true

# Optional: Enable Discord → Minecraft
server:
  enabled: true  # Allows Discord users to send messages to MC
  port: 8080
  secret: "change-this-secret"

4. Testing

/auryxdiscord info     # Check integration status
/auryxdiscord test     # Send test message to Discord

🎯 Use Cases

🏰 Roleplay Servers

  • Immersive Discord integration for RP communities
  • Character death notifications
  • Staff moderation alerts

🏃 Survival Servers

  • Player activity monitoring
  • Community chat bridge
  • Achievement sharing

🎮 Mini-game Networks

  • Cross-server announcements via Velocity
  • Tournament notifications
  • Player statistics sharing

🛡️ Moderated Communities

  • Real-time punishment notifications
  • Staff communication bridge
  • Server status monitoring

🔧 Advanced Features

Message Placeholders

# Available placeholders in message formats:
{player}        # Player name
{displayname}   # Player display name
{message}       # Chat message content
{server}        # Server name
{online}        # Current online players
{max}           # Maximum players
{balance}       # Player balance (AuryxCore)
{death_message} # Full death message
{staff}         # Staff member name
{reason}        # Punishment reason

# PlaceholderAPI support:
%player_name%           # Player name
%server_online%         # Online count
%auryxcore_balance%     # Player balance
# + 1000+ other PAPI placeholders

Webhook Security

  • Signature Verification - Validates incoming Discord webhooks
  • Secret Keys - Configurable webhook secrets
  • IP Filtering - Optional IP whitelist for HTTP server
  • Rate Limiting - Built-in protection against spam

Multi-Channel Setup

webhooks:
  chat: "https://discord.com/api/webhooks/chat-webhook"
  log: "https://discord.com/api/webhooks/log-webhook"
  death: "https://discord.com/api/webhooks/death-webhook"
  punishment: "https://discord.com/api/webhooks/mod-webhook"
  
# Events automatically route to appropriate channels
# Falls back to 'log' webhook if specific webhook not configured

📞 Support & Community


🆚 Why Choose AuryxDiscord?

vs Traditional Discord Bots:

  • No Bot Hosting - Runs directly on your Minecraft server
  • Lower Resource Usage - No JDA, just HTTP requests
  • Easier Setup - No bot tokens or permissions needed
  • Better Integration - Direct access to server events and data

vs Other Discord Plugins:

  • Modern Architecture - Built for Paper/Folia with async processing
  • Lightweight - 6MB vs 20MB+ for JDA-based plugins
  • Two-Way Communication - Most plugins only do MC → Discord
  • Rich Formatting - Embeds, avatars, and advanced placeholders

vs EssentialsX Discord:

  • Better Performance - Async processing and message queuing
  • More Features - HTTP server, multiple webhooks, embeds
  • Active Development - Regular updates and new features
  • Modern Codebase - Java 21, latest APIs, clean architecture

📄 License

AuryxDiscord is licensed under the MIT License. See LICENSE for details.


Made with ❤️ by Auryx Studio

Requires AuryxCore for full functionality. Part of the complete Auryx server management suite!


🚀 Quick Start

  1. Install: Download AuryxCore + AuryxDiscord
  2. Configure: Add Discord webhook URLs to config
  3. Test: Use /auryxdiscord test command
  4. Enjoy: Seamless Minecraft-Discord integration!

Transform your server communication today! 🎊💬

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x1.11.x1.10.x1.9.x1.8.x

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:4 месяца назад
Обновлён:4 месяца назад
Главная