Skip to content

Conversation

Copy link

Copilot AI commented Feb 7, 2026

Blocked by #208

Adds MineDown as an optional formatting engine for player messages, enabling Markdown-like syntax (**bold**, ##italic##, __underlined__, ~~strikethrough~~, [text](url)).

Changes

  • Dependency: de.themoep:minedown-adventure:1.7.6-SNAPSHOT added with shadow relocation under com.eternalcode.formatter.libs
  • Config: mineDownSupport boolean in PluginConfig (default false). When enabled, player messages are parsed via MineDown instead of the MiniMessage pipeline
  • Permissions: MineDown features gated on existing permission nodes:
    • chatformatter.decorations.*SIMPLE_FORMATTING
    • chatformatter.hover + chatformatter.clickADVANCED_FORMATTING
    • chatformatter.color.*LEGACY_COLORS
  • Legacy handling: Legacy-to-MiniMessage conversion is skipped when MineDown is active since MineDown handles & color codes natively

Config example

# Enable MineDown (Markdown-like formatting)
mineDownSupport: true

Players can then type: **bold** and ~~struck~~ and [click me](https://example.com)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • hub.spigotmc.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 (dns block)
  • repo.minebench.de
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add MineDown support</issue_title>
<issue_description>Markdown, but for Minecraft: https://github.com/Phoenix616/MineDown</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 7, 2026 10:24
Co-authored-by: Jakubk15 <77227023+Jakubk15@users.noreply.github.com>
…or MineDown

Co-authored-by: Jakubk15 <77227023+Jakubk15@users.noreply.github.com>
Copilot AI changed the title [WIP] Add MineDown support for Markdown in Minecraft Add MineDown support Feb 7, 2026
Copilot AI requested a review from Jakubk15 February 7, 2026 10:30
@Jakubk15 Jakubk15 changed the title Add MineDown support GH-173 Add MineDown support Feb 7, 2026
@Jakubk15
Copy link
Member

Jakubk15 commented Feb 7, 2026

2026-02-07.15-29-34.mp4

Comment on lines +142 to +161
if (this.settings.isMineDownEnabled()) {
MineDown mineDown = new MineDown(rawMessage);

if (!sender.hasPermission(PERMISSION_ALL)) {
if (!sender.hasPermission("chatformatter.decorations.*")) {
mineDown.disable(MineDownParser.Option.SIMPLE_FORMATTING);
}
if (!(sender.hasPermission("chatformatter.hover") && sender.hasPermission("chatformatter.click"))) {
mineDown.disable(MineDownParser.Option.ADVANCED_FORMATTING);
}
if (!sender.hasPermission("chatformatter.color.*")) {
mineDown.disable(MineDownParser.Option.LEGACY_COLORS);
}
}

componentMessage = mineDown.toComponent();
} else {
TagResolver permittedTags = this.providePermittedTags(sender);
rawMessage = Legacy.legacyToAdventure(rawMessage, permission -> sender.hasPermission(permission));
componentMessage = EMPTY_MESSAGE_DESERIALIZER.deserialize(rawMessage, permittedTags);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bez sensu czemu stara logika jest wykluczana

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.

Add MineDown support

3 participants