Docs

Embeds y Notificaciones

DiscordSync envía automáticamente embeds elegantes a Discord para eventos clave del ciclo de vida del servidor y la actividad de los jugadores.

Eventos con Embeds Soportados

1. Ciclo de Vida del Servidor

  • Inicio del Servidor: Notificación cuando el servidor de Hytale inicia con éxito.
    • Color por defecto: #5865F2, Título Server Status, Descripción The server is now **ONLINE** 🟢.
  • Apagado del Servidor: Notificación enviada durante el apagado del servidor.
    • Color por defecto: #ED4245, Título Server Status, Descripción The server is now **OFFLINE** 🔴.

2. Conexiones de Jugadores

  • Entrada de Jugador: Escucha el evento PlayerReadyEvent y publica un embed cuando un jugador entra.
    • Color por defecto: #57F287 (Verde), Título Player Joined, Descripción %player% has connected..
  • Salida de Jugador: Escucha PlayerDisconnectEvent y notifica cuando un jugador se desconecta.
    • Color por defecto: #ED4245 (Rojo), Título Player Left, Descripción %player% has disconnected..

Configuración

Puedes personalizar el color, título y descripción, o desactivar cualquier embed individualmente en config.json:

json
{
  "embeds": {
    "join": {
      "enabled": true,
      "color": "#57F287",
      "title": "Player Joined",
      "description": "%player% has connected."
    },
    "leave": {
      "enabled": true,
      "color": "#ED4245",
      "title": "Player Left",
      "description": "%player% has disconnected."
    },
    "serverStart": {
      "enabled": true,
      "color": "#5865F2",
      "title": "Server Status",
      "description": "The server is now **ONLINE** 🟢"
    },
    "serverStop": {
      "enabled": true,
      "color": "#ED4245",
      "title": "Server Status",
      "description": "The server is now **OFFLINE** 🔴"
    }
  }
}
Embeds & Announcements | Hytale DiscordSync Docs