Skip to content

fix: read discord enabled flag from correct config path#5

Merged
Xitee1 merged 1 commit into
masterfrom
fix/discord-enabled-config-path
Apr 26, 2026
Merged

fix: read discord enabled flag from correct config path#5
Xitee1 merged 1 commit into
masterfrom
fix/discord-enabled-config-path

Conversation

@Xitee1
Copy link
Copy Markdown
Owner

@Xitee1 Xitee1 commented Apr 26, 2026

Summary

  • PluginConfig.isDiscordEnabled() was reading getBoolean("discord", false), but discord is a config section, not a boolean. The actual flag lives at discord.enabled, so the check always returned false and the Discord bot was silently never started — Starting Discord bot.. never appeared in the log.

Test plan

  • In plugins/SMP/config.yaml, set discord.enabled: true and provide a valid discord.token
  • Restart the server, confirm the log now shows [SMP] Starting Discord bot.. followed by [SMP] Discord bot is online!
  • Confirm chat messages bridge between MC and the configured Discord channel

🤖 Generated with Claude Code

isDiscordEnabled() was reading getBoolean("discord", false), but
discord is a config section, not a boolean. The actual flag lives at
discord.enabled, so the check always returned false and the bot was
never started.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Xitee1 Xitee1 merged commit 2db668a into master Apr 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant