Can you make an api thing that I can add to my discord bot which it sends minecraft chat to anyone who talks in it, it has to be only players and when people chat in minecraft-chat in my server it sends this Discord ([username]) > [text] and same for minecraft but replace discord with its username like ([username]) > [text]
Is this for an existing Discord bot or Minecraft server project that you can add to this workspace, or would you like a new project? If new, which language is your bot written in—Python, JavaScript, TypeScript, or Ruby?
its python and 26.2 paper mc
I started both parts of the bridge: a Python Discord bot and a Paper plugin. They’ll use an authenticated WebSocket connection to relay chat between your configured Discord channel and online Minecraft players in the format ([username]) > [text].
Create the bot and authenticated multi-peer WebSocket bridge.
Add environment/dependency files and setup, protocol, and security instructions.Created a runnable Discord–Minecraft chat bridge with
main.py, dependency metadata,.env.example,.gitignore, and setup/protocol documentation.
The bot listens only in the configured text channel, broadcasts human messages to authenticated WebSocket peers, and posts validated Minecraft chat with mentions suppressed. Configure .env, install with pip install -r requirements.txt, then run python main.py.
Create a Gradle Paper 26.2 plugin scaffold and default WebSocket/token configuration.
Implement authenticated async WebSocket connection, reconnect, and JSON frame handling.
Forward player chat and safely broadcast Discord chat; add setup/network documentation.Created the Paper 26.2 chat bridge with Gradle setup, default WebSocket/token configuration, authenticated JSON framing, asynchronous reconnects, and shutdown cleanup. Player messages are forwarded as plain text; authenticated Discord messages are broadcast on the Bukkit main thread as
(<username>) > <message>without being echoed back.
Setup and protocol details are in README.md. Set websocket.bridge-token to the same secret as the bot’s BRIDGE_TOKEN, and ensure the bot host is reachable from the Paper server.
The Python bot and Paper plugin are in place, and the plugin compiles successfully. I caught one formatting detail: I’ve started a small update so Discord messages appear in Minecraft as Discord (username) > message; Minecraft messages will appear in Discord as (username) > message.
[Generation stopped]
Updated the Discord-to-Minecraft display prefix to Discord (<username>) > <message> and clarified the direction-specific formats in the README. JSON protocol and player-chat forwarding are unchanged.
Files changed: ChatBridgePlugin.java, README.md.
The two-way bridge is ready. Discord messages appear to Minecraft players as Discord (username) > message; player chat appears in the configured Discord channel as (username) > message. Only player chat is forwarded from Minecraft.
The Paper plugin compiled successfully. See each project’s README for setup: configure the Discord bot’s channel and token, set the same bridge secret in both projects, and point the plugin at the bot’s WebSocket address.
No files in this session