Skip to content

🚀 This new wiki is in beta! Please double-check for any issue and report them on the GitHub

ConsoleLogs

ConsoleLogs is a powerful module that creates a bidirectional bridge between your Minecraft server console and Discord. Whether you want to monitor your server logs in real-time or send custom debug messages to your console, this module has you covered.

  • Console to Discord: Read log messages from your Minecraft server console and send them straight to Discord channels
  • Discord to Console: Send custom log messages to your server console for debugging and monitoring
  • Real-time Monitoring: Keep track of server events, warnings, and errors without leaving Discord
  • Flexible Integration: Works seamlessly with DiSky’s event system
  1. Download the module

    Download ConsoleLogs from one of these sources:

  2. Install the module

    Place the downloaded JAR file in your server’s plugins/DiSky/modules/ directory.

  3. Restart your server

    Restart your Minecraft server to load the module.

  4. Verify installation

    Check your server console for a message confirming ConsoleLogs has been loaded successfully.

To read and forward console messages to Discord, you can use DiSky’s console event system:

# Monitor all console messages and send them to a Discord channel
on console message:
# Get the log message
set {_message} to event-string
# Send to a specific Discord channel
set {_channel} to text channel with id "YOUR_CHANNEL_ID" in bot "YOUR_BOT_NAME"
send {_message} to {_channel}

You can filter messages to only send specific types of logs (errors, warnings, etc.):

# Only send error messages to Discord
on console message:
set {_message} to event-string
# Check if message contains error keywords
if {_message} contains "ERROR" or "SEVERE" or "Exception":
set {_channel} to text channel with id "YOUR_ERROR_CHANNEL_ID" in bot "YOUR_BOT_NAME"
send "🚨 **Server Error:** %nl%%{_message}%" to {_channel}

Send custom log messages to your server console for debugging:

# Discord command to send a debug message to console
discord command debug <text>:
prefixes: !
roles: Administrator
trigger:
# Send the message to console
send "Debug from %mention tag of event-user%: %arg-1%" to console
# Confirm to Discord
reply with "Debug message sent to console!"

Create a comprehensive monitoring system with multiple channels:

# Complete console monitoring system
on console message:
set {_message} to event-string
set {_bot} to bot named "YOUR_BOT_NAME"
# Error channel
if {_message} contains "ERROR" or "SEVERE" or "Exception":
set {_channel} to text channel with id "ERROR_CHANNEL_ID" with {_bot}
make embed:
set title of embed to "❌ Server Error"
set description of embed to {_message}
set color of embed to red
send last embed to {_channel}
stop
# Warning channel
if {_message} contains "WARN" or "WARNING":
set {_channel} to text channel with id "WARNING_CHANNEL_ID" with {_bot}
make embed:
set title of embed to "⚠️ Server Warning"
set description of embed to {_message}
set color of embed to orange
send last embed to {_channel}
stop
# General logs channel
set {_channel} to text channel with id "LOGS_CHANNEL_ID" with {_bot}
send {_message} to {_channel}

Monitor your server health and catch issues before they become problems:

  • Track player joins/leaves
  • Monitor plugin errors
  • Catch performance warnings
  • Debug command issues

Use ConsoleLogs during development to streamline your workflow:

# Send debug messages during development
set {_data} to some value
send "DEBUG: Variable value is %{_data}%" to console
# This appears in both server console and Discord

Keep an audit trail of important server events:

# Log important actions to console and Discord
on player command:
if command contains "op" or "deop" or "gamemode":
send "AUDIT: %player% executed: /%command%" to console
  • Verify bot permissions: Ensure your bot has permission to send messages in the target channel
  • Check channel IDs: Double-check that you’re using the correct Discord channel IDs
  • Confirm bot status: Make sure your DiSky bot is online and connected

If you’re getting flooded with console messages:

# Add rate limiting
on console message:
# Only send every 5th message
add 1 to {console.counter}
if {console.counter} is greater than or equal to 5:
set {console.counter} to 0
# Send to Discord
set {_channel} to text channel with id "CHANNEL_ID" in bot "BOT_NAME"
send event-string to {_channel}
  1. Filter Messages: Don’t forward every console message—focus on important events
  2. Use Separate Channels: Create different Discord channels for errors, warnings, and general logs
  3. Rate Limiting: Implement rate limiting to prevent spam
  4. Format Messages: Use embeds for better readability in Discord
  5. Security: Never expose sensitive information from console logs in public Discord channels

Need help with ConsoleLogs? Join the DiSky community: