MiraiMC
A mirai bot for Minecraft servers.
About this Mod
MiraiMC is a mirai bot for Minecraft servers
Mirai is a high-performance multi-platform library, as well as a framework, providing protocol support for Tencent QQ.
Mirai is designed to handle all sorts of messaging works that can be automatically done by bots in a perfect way.
Tencent QQ: A modern messaging software used by all Chinese netizens.
Features
- Support Bukkit/Sponge servers.
- Support BungeeCord/Velocity proxies.
- Optimized for GUI-less OS such as Linux
- Dynamically load dependent libraries to minimize file size.
Getting Started (Server)
- Download MiraiMC from "Featured versions" part. Then install it like installing other plugins.
- Configure any plugins' that depend on MiraiMC (if any) and login to your bot account
A more detailed tutorial can be found here: https://docs.miraimc.dreamvoid.me/
Getting Started (Plugin Developer)
- It is simple to develop a new MiriMC-based plugin by using template:
- MiraiMC javadoc here: https://jd.miraimc.dreamvoid.me
- Detailed development tutorial here: https://docs.miraimc.dreamvoid.me/
Dependency
Maven
<dependency>
<groupId>io.github.dreamvoid</groupId>
<artifactId>MiraiMC-Integration</artifactId>
<version>1.9</version>
<scope>provided</scope>
</dependency>
Gradle
implementation 'io.github.dreamvoid:MiraiMC-Integration:1.9'
Commands and permissions
Commands
| Command | Description | Permissions |
|---|---|---|
| /mirai | MiraiMC Robot Command | miraimc.command.mirai |
| /mirai login |
Log in to a robot (you can execute this command multiple times to log in to multiple robots) | miraimc.command.mirai.login |
| /mirai logout |
Log out and close a bot | miraimc.command.mirai.logout |
| /mirai list | List currently online bots | miraimc.command.mirai.list |
| /mirai sendfriendmessage |
Send a message to a specified friend | miraimc.command.mirai.sendfriendmessage |
| /mirai sendfriendnudge |
Send a stamp to a specified friend | miraimc.command.mirai.sendfriendnudge |
| /mirai sendgroupmessage |
Send a message to the specified group | miraimc.command.mirai.sendgroupmessage |
| /mirai checkonline |
Check if the specified robot is online | miraimc.command.mirai.checkonline |
| /mirai autologin add |
Add an autologin robot account | miraimc.command.mirai.autologin |
| /mirai autologin remove |
Remove an autologin bot account | miraimc.command.mirai.autologin |
| /mirai autologin list | View autologin robot account list | miraimc.command.mirai.autologin |
| /miraimc | MiraiMC Plugin Command | miraimc.command.miraimc |
| /miraimc bind add |
Add binding for player and QQ number | miraimc.command.miraimc.bind |
| /miraimc bind getplayer |
Get the QQ number bound to the specified player name | miraimc.command.miraimc.bind |
| /miraimc bind getqq |
Get the player name bound to the specified QQ number | miraimc.command.miraimc.bind |
| /miraimc bind removeplayer |
Removes a player's bind | miraimc.command.miraimc.bind |
| /miraimc bind removeqq |
Delete the binding of a QQ number | miraimc.command.miraimc.bind |
| /miraimc reload | Reload configuration file | miraimc.command.miraimc.reload |
Permissions
| Permission Node | Description | Default |
|---|---|---|
| miraimc.command.mirai | Allow use of /mirai |
OP |
| miraimc.command.mirai.* | Allow all subcommands of /mirai |
OP |
| miraimc.command.mirai.login | Allow /mirai login |
OP |
| miraimc.command.mirai.logout | Allow /mirai logout |
OP |
| miraimc.command.mirai.list | Allow /mirai list |
OP |
| miraimc.command.mirai.sendfriendmessage | Allow /mirai sendfriendmessage |
OP |
| miraimc.command.mirai.sendfriendnudge | Allow /mirai sendfriendnudge |
OP |
| miraimc.command.mirai.sendgroupmessage | Allow /mirai sendgroupmessage |
OP |
| miraimc.command.mirai.checkonline | Allow /mirai checkonline |
OP |
| miraimc.command.mirai.autologin | Allow /mirai autologin |
OP |
| miraimc.command.miraimc | Allow use of /miraimc |
OP |
| miraimc.command.miraimc.* | Allow all subcommands of /miraimc |
OP |
| miraimc.command.miraimc.bind | Allow /miraimc bind and subcommands |
OP |
| miraimc.command.miraimc.reload | Allow /miraimc reload |
OP |
LICENSE
GNU Affero General Public License v3.0
Acknowledgments
Thanks to the following people/teams/projects for their contributions to MiraiMC!
- mamoe/mirai: Powerful QQ robot support library, the core and foundation of MiraiMC.
- lucko/helper: Provide MiraiMC with a solution to dynamically load the mirai core.
- brettwooldridge/HikariCP: An efficient SQL connection pool, providing database connection solutions for MiraiMC.
- LT_Name: Optimized a lot of Nukkit code for MiraiMC, also provided a lot of help for MiraiMC.
- You.
DreamVoid and MiraiMC, made with ❤.
This file is a translated version of the original file, and some semantics may differ from the original file.
Available Versions
How to Install MiraiMC on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set bukkit Loader
In the panel under "Egg", select the bukkit loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "MiraiMC". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+104 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
MiraiMC server crashes on startup – what to do?
Most common cause: wrong bukkit version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is MiraiMC compatible with bukkit and bungeecord and folia and forge and paper and purpur and spigot and sponge and velocity and waterfall?
MiraiMC officially supports bukkit, bungeecord, folia, forge, paper, purpur, spigot, sponge, velocity, waterfall for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with MiraiMC – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if MiraiMC consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install MiraiMC with just one click on your server.