Перейти к содержимому
Mineforgian

Данные могли устареть: источник временно недоступен, показан кэш.

SyncCord

DiscordSRV 2.0 - A Hungarian made simple but hopefully better DiscordSRV

Загрузки
178
Подписчики
1
Обновлён
29 октября 2025 г.
Лицензия
All-Rights-Reserved

Опубликован 24 октября 2025 г.

SyncCord

The Modern Minecraft-Discord Integration Plugin

Discord

SyncCord is a high-performance, deeply customizable plugin that builds a bridge between your Minecraft server and your Discord community. It seamlessly connects the two platforms in real-time, from chat messages to administrative commands.

Version Compatibility Dependency


Key Features

  • 🔗 Two-Way Chat Relay: Minecraft chat messages instantly appear in a dedicated Discord channel, and vice-versa. The plugin handles formatting, colors, and ping prevention.
  • ⚙️ Advanced Command Relay: Execute server commands directly from Discord! Using the ? prefix, you can issue any console command if you have the required Discord role.
  • 🔐 Secure Account Linking: A simple, code-based system (/discord link -> ?dclink <code>) allows players to securely link their Minecraft and Discord accounts.
  • 👑 Automatic Role Synchronization: The plugin uses the LuckPerms API to automatically synchronize player ranks. Upon account linking and rank changes, the corresponding Discord role is assigned automatically.
  • 📢 Event Notifications: Important server events (server start/stop, player join/leave) are displayed as formatted, embedded messages in Discord.
  • 🖥️ Console Relay: Server console log messages (INFO, WARN, ERROR) can be forwarded to a separate Discord channel, aiding in server administration.
  • 🛠️ Extreme Customization: In the config.yml file, nearly every message, format, color, and operational parameter can be customized, from the appearance of the Minecraft-Discord chat to the messages posted after moderation commands.
  • 🔄 Reload Command: The plugin can be reloaded without a server restart using the /synccord reload command.

Installation and Setup

Step 1: Create a Discord Bot

  1. Go to the Discord Developer Portal and create a New Application.
  2. In the Bot menu, click the Add Bot button.
  3. Under the bot's settings, enable the following Privileged Gateway Intents:
    • SERVER MEMBERS INTENT
    • MESSAGE CONTENT INTENT
  4. Click the Reset Token button, then copy the token that appears. Treat this token like a password and never share it with anyone!
  5. In the OAuth2 -> URL Generator menu, select the bot and applications.commands scopes.
  6. In the Bot Permissions section, grant the necessary permissions (minimum: Send Messages, Read Message History, Manage Roles, Embed Links).
  7. Copy the generated URL and use it to invite the bot to your Discord server.

Step 2: Configure the Plugin

  1. Place the SyncCord.jar file into your server's plugins folder.
  2. Start the server to generate the plugins/SyncCord/config.yml file.
  3. Stop the server.
  4. Open the config.yml file and fill in the required fields:
    # The token you copied from the Discord Developer Portal
    BotToken: "PASTE_YOUR_BOT_TOKEN_HERE"
    
    Channels:
      # Where chat and events will appear
      chat: "DISCORD_CHAT_CHANNEL_ID"
      # Where console logs and commands are handled
      console: "DISCORD_CONSOLE_CHANNEL_ID"
    
    RoleSync:
      enabled: true
      roles:
        # Minecraft Group Name: "Discord Role ID"
        default: "123456789012345678"
        admin: "098765432109876543"
    
    ConsoleRelay:
      commands:
        enabled: true
        allowedRoles:
          # Discord roles that can use commands
          - "SERVER_ADMIN_ROLE_ID"
    
  5. Start the server again. If everything is configured correctly, your bot will be online and the plugin will be operational!

Commands

Minecraft Commands

  • /discord link - Generates a one-time code to link your account.
  • /discord unlink - Unlinks your Minecraft and Discord accounts.
  • /synccord reload - Reloads the plugin's configuration files.

Discord Commands

The commands use the prefix set in config.yml (default: ?).

  • ?dclink <code> - Links your account using the code received in Minecraft.
  • ?dcunlink - Unlinks your account.
  • ?<command> [arguments] - Executes any server command if you have the required Discord role (e.g., ?kick Steve, ?say Hello World).

Permissions

  • synccord.reload - Allows the use of the /synccord reload command.

Dependencies

  • LuckPerms: Required for role synchronization. The plugin will run without it, but rank-related features will be disabled.

Ченджлог

beta-1.0Бета1.21.8, 1.21.9, 1.21.10 · 29 октября 2025 г.

Version beta-1.0 (Recent Updates)

  • Interactive Command Responses:

    • New: Commands executed from Discord now return the actual console output in a formatted embed, instead of a generic "command executed" message. This is crucial for commands like list or checkban.
    • New: The command system was completely rewritten to use a stable "Proxy Sender" method, guaranteeing that all command outputs are captured reliably.
  • 🚀 Command & Prefix Flexibility:

    • New: The prefix for all Discord commands (e.g., ?, !) is now fully configurable in the config.yml under ConsoleRelay.prefix.
    • Improved: All commands, including dclink and dcunlink, now use the same configurable prefix, creating a consistent user experience.
    • Improved: Commands can now be executed from any channel by users with the appropriate role, not just the console channel.
  • 📈 Dynamic Channel Topic Updater:

    • New: The plugin can now automatically update a Discord channel's topic to display the server's live player count (Online: {online}/{max}).
    • This feature is fully configurable, including the channel ID, update interval, and message format.
  • 🛡️ Enhanced Stability & User Experience:

    • Fixed: A critical bug causing a zip file closed error during plugin reloads has been resolved. The /synccord reload command is now stable.
    • Fixed: An issue causing duplicate chat messages after a reload has been fixed.
    • Improved: The /discord link command now checks if an account is already linked and provides a clear, configurable message to the user.
    • Improved: All account linking messages (for both Minecraft and Discord) are now fully customizable in the config.yml.
    • Improved: The plugin now provides detailed diagnostic messages in the server console if a configured channel ID is invalid, making setup and debugging much easier.
1.0Альфа1.21.8, 1.21.9, 1.21.10 · 24 октября 2025 г.

A Hungarian made simple, but hopefully better DiscordSRV.

DEV Discord server

Meet SyncCord

Its a Hungarian made simple easy plugin witch allows you to connect your Discord Server with the Minecraft server Minecraft viewDiscord view

Usage:

Commands:

- Minecraft command: /discord link - It gives you a 6 number code to connect dicord with minecraft

- Discord command: ?dclink 6 number code it give you at /discord link command.

- Minecraft command: /discord unlink - Unlinks the connection with discord

- Discord command: ?dcunlink Unlinks the connection with minecraft

- Minecraft command: /synccord reload - Reloads the config.yml file

Permission to /synccore reload: synccore.reload

Default config.yml

# SyncCord - Minecraft-Discord Integration Plugin
# Created by KAGA

# ----------------------------------
# BOT BEÁLLÍTÁSOK
# ----------------------------------
BotToken: ""
BotStatus:
  enabled: true
  activityType: "WATCHING"
  activityText: "a szervert"

# ----------------------------------
# CSATORNA BEÁLLÍTÁSOK
# ----------------------------------
Channels:
  chat: ""
  console: ""

# ----------------------------------
# FIÓKÖSSZEKAPCSOLÁS
# ----------------------------------
AccountLinking:
  database: "yaml"
  codeValidityMinutes: 5
  codeLength: 6
  deleteCommandAfterUse: true

# ----------------------------------
# RANG SZINKRONIZÁLÁS
# ----------------------------------
RoleSync:
  enabled: true
  roles:
    default: ""

# ----------------------------------
# KONZOL RELAY
# ----------------------------------
ConsoleRelay:
  enabled: true
  prefix: "?"
  levels: ["INFO", "WARN", "ERROR"]
  commands:
    enabled: true
    requireLinkedAccount: true
    allowedRoles:
      - "SZERVER_ADMIN_SZEREPKÖR_ID"
    # Azok a parancsok, amik után a plugin külön üzenetet küld a végrehajtóról.
    moderationCommands: ["kick", "ban", "mute", "tempban", "warn"]

# ==========================================================================
# ÜZENETFORMÁTUMOK
# ==========================================================================

MessageFormats:
  minecraftToDiscord:
    useEmbed: false
    plainTextFormat: "**{rank}** {playerName}: {message}"
    embed:
      color: "#00AAAA"
      author: "{playerName} | {rank}"
      description: "{message}"

  discordToMinecraft: "&9[Discord] &7({topRole}) &b{userNick}&f: &7{message}"

  # Ez az üzenet jelenik meg, miután egy moderációs parancs lefutott Discordról.
  # Placeholder-ek: {command}, {discordName}
  consoleCommandExecuted: "&e[!] A(z) '{command}' parancsot végrehajtotta: &c{discordName} (Discord)"

  serverStart:
    description: "✅ A szerver elindult!"
    color: "#00FF00"
  serverStop:
    description: "❌ A szerver leállt!"
    color: "#FF0000"
  playerJoin:
    description: "➡️ {playerName} csatlakozott a szerverhez."
    color: "#FFFF00"
  playerLeave:
    description: "⬅️ {playerName} elhagyta a szervert."
    color: "#FFA500"

Комментарии

Загружаем…