QueQiao

QueQiao V2 protocol bridge plugin supporting forward/reverse WebSocket connections for message exchange between Minecraft and external systems

information
management

Installation command

!!MCDR plugin install queqiao

Synced at

...

Last update

...

Latest version

Total downloads

1

Back to catalogue

QueQiao MCDR

A MCDReforged plugin bridging the QueQiao V2 protocol, supporting both forward WebSocket (client) and reverse WebSocket (server) connection modes for real-time message exchange between a Minecraft server and external systems (e.g. NoneBot / QueQiao server).

📖 Compatible Projects

This plugin follows the QueQiao V2 protocol and can interoperate with:

  • UniBot — A cross-platform Minecraft bot; this plugin serves as its MCDR endpoint
  • nonebot-adapter-minecraft — A NoneBot adapter for Minecraft that communicates with this plugin via the QueQiao protocol
  • QueQiao — The official QueQiao protocol implementation

✨ Features

Connection

  • 🔌 Dual-mode WebSocket: client mode actively connects to the QueQiao server; server mode passively waits for QueQiao clients
  • 🔁 Auto-reconnect (client mode): configurable reconnect interval and max retry count
  • đŸ”Ĩ Hot reload: !!queqiao reload reloads config and reuses the existing connection without restarting the server

API Handling (QueQiao → MCDR)

APIDescription
broadcastBroadcast a message to the game
send_private_msgSend a private message to a specific player
send_titleSend a title/subtitle (configurable fade-in/stay/fade-out)
send_actionbarSend an ActionBar message
send_rcon_commandExecute a RCON command and return the result
get_statusQuery server status (CPU/memory/players/MOTD, etc.)

Game Event Forwarding (MCDR → QueQiao)

EventSource
Player join / quitMCDR built-in events
Player chat / commandMCDR USER_INFO event
Player deathMoreGameEvents PlayerDeathEvent
Player advancementMoreGameEvents PlayerAdvancementEvent

đŸ“Ļ Installation

Option 1: Download the .mcdr package

Download QueQiao-vX.X.X.mcdr from Releases and drop it into the MCDR plugins/ directory.

Option 2: From source

git clone https://github.com/Minecraft-UniBot/QueQiao.MCDReforged.git
cd QueQiao.MCDReforged
uv sync

Use the whole directory as a Directory Plugin, or pack it yourself:

uv run python -m mcdreforged pack

🎮 Commands

CommandPermissionDescription
!!queqiao2Show help
!!queqiao status2View connection status (mode, players, CPU, memory, MOTD, etc.)
!!queqiao reload2Reload config and reconnect

📋 Dependencies

Runtime

  • MCDReforged >= 2.15.0
  • Python >= 3.12

Python packages

  • websockets >= 16.0
  • PyYAML >= 6.0
  • psutil >= 5.9

MCDR plugin dependencies

PluginUsageRequired
MoreGameEventsPlayer death & advancement events✅
Minecraft Data APIPlayer coords, health, XP level✅
online_player_apiOnline player listâš ī¸ Optional (falls back to MCDR built-in API if missing)

īŋŊ📄 License

MIT

Introduction source: docs/introduction-en.md