// documentation
Docs / LiveConsole
Webhooks Discord, intégration du bot et configuration complète.
config_simple
Use a single webhook for all notifications.
discord:
webhook-url: "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL"
discord-bot:
enabled: false # Optional - enable later if needed
config_avancée
Separate webhooks per message type for better organization.
discord:
webhooks:
console-logs: "https://discord.com/api/webhooks/.../TOKEN1"
player-events: "https://discord.com/api/webhooks/.../TOKEN2"
suspicious-activity: "https://discord.com/api/webhooks/.../TOKEN3"
server-control: "https://discord.com/api/webhooks/.../TOKEN4"
suspect-users: "https://discord.com/api/webhooks/.../TOKEN5" # NEW in 2.0.1
# Custom mentions per webhook type (NEW in 2.0.1)
webhook-mentions:
console-logs: []
player-events: []
suspicious-activity: ["123456789012345678"] # Admin Discord IDs
server-control: []
suspect-users: ["123456789012345678"] # Mentions for suspect alerts
# Console error highlighting (NEW in 2.0.1)
console-errors-in-red: true
# Server control message options
server-control-show-players: true
server-control-show-timestamp: true
server-icon-url: "" # Optional: image URL for start/stop
icône_serveur
Add a custom image to server startup & shutdown notifications.
discord:
server-icon-url: "https://i.imgur.com/yourimage.png"
config_bot_discord
The Discord bot enables remote server control directly from Discord — execute commands, stop / restart, list players, view status.
Step 1 — Create the bot application
- Visit Discord Developer Portal
- Click New Application
- Set a name (e.g. "LiveConsole Bot")
- Navigate to Bot → click Add Bot
- Under Privileged Gateway Intents, enable: MESSAGE CONTENT INTENT (required), SERVER MEMBERS INTENT, PRESENCE INTENT
- Click Reset Token → copy the token
Step 2 — Invite the bot
- Go to OAuth2 → URL Generator
- Select bot scope
- Bot permissions: Send Messages, Read Messages, Embed Links
- Copy the generated URL and open it
- Invite the bot to your Discord server
Step 3 — Configure config.yml
discord-bot:
enabled: true
token: "YOUR_BOT_TOKEN_HERE"
command-channel-id: "123456789012345678" # Channel ID
command-prefix: "!"
# Authorized Discord user IDs
authorized-users:
- "987654321098765432" # Your Discord ID
How to get Discord IDs
- In Discord, go to Settings → Advanced
- Enable Developer Mode
- Right-click a channel → Copy ID (for
command-channel-id) - Right-click your username → Copy ID (for
authorized-users)
Step 4 — Last step
Add the LiveConsole role inside your channel (only one channel).
commandes_bot
- !execute <cmd>Exécuter une commande serveur (alias: !exec, !exe)
- !stopArrêter le serveur
- !restartRedémarrer le serveur
- !playersAfficher les joueurs en ligne (alias: !list)
- !statusAfficher le statut du serveur (TPS, mémoire, etc.)
- !helpAfficher le message d'aide
Only authorized users (configured in authorized-users) can use these commands.
compatibilité
- Minecraft1.18.2 → 26.1.2
- ServeurPaper, Spigot, Purpur (et forks compatibles)
- Java17+ (21 recommandé pour des perfs optimales)