Моды/MiraiMC

MiraiMC

A mirai bot for Minecraft servers.

3.5K
10

MiraiMC

GitHub release CodeFactor GitHub Actions CI GitHub all releases


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)

  1. Download MiraiMC from "Featured versions" part. Then install it like installing other plugins.
  2. 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)

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

CommandDescriptionPermissions
/miraiMiraiMC Robot Commandmiraimc.command.mirai
/mirai login [protocol]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 botmiraimc.command.mirai.logout
/mirai listList currently online botsmiraimc.command.mirai.list
/mirai sendfriendmessage Send a message to a specified friendmiraimc.command.mirai.sendfriendmessage
/mirai sendfriendnudge Send a stamp to a specified friendmiraimc.command.mirai.sendfriendnudge
/mirai sendgroupmessage Send a message to the specified groupmiraimc.command.mirai.sendgroupmessage
/mirai checkonline Check if the specified robot is onlinemiraimc.command.mirai.checkonline
/mirai autologin add [protocol]Add an autologin robot accountmiraimc.command.mirai.autologin
/mirai autologin remove Remove an autologin bot accountmiraimc.command.mirai.autologin
/mirai autologin listView autologin robot account listmiraimc.command.mirai.autologin
/miraimcMiraiMC Plugin Commandmiraimc.command.miraimc
/miraimc bind add Add binding for player and QQ numbermiraimc.command.miraimc.bind
/miraimc bind getplayer Get the QQ number bound to the specified player namemiraimc.command.miraimc.bind
/miraimc bind getqq Get the player name bound to the specified QQ numbermiraimc.command.miraimc.bind
/miraimc bind removeplayer Removes a player's bindmiraimc.command.miraimc.bind
/miraimc bind removeqq Delete the binding of a QQ numbermiraimc.command.miraimc.bind
/miraimc reloadReload configuration filemiraimc.command.miraimc.reload

Permissions

Permission NodeDescriptionDefault
miraimc.command.miraiAllow use of /miraiOP
miraimc.command.mirai.*Allow all subcommands of /miraiOP
miraimc.command.mirai.loginAllow /mirai loginOP
miraimc.command.mirai.logoutAllow /mirai logoutOP
miraimc.command.mirai.listAllow /mirai listOP
miraimc.command.mirai.sendfriendmessageAllow /mirai sendfriendmessageOP
miraimc.command.mirai.sendfriendnudgeAllow /mirai sendfriendnudgeOP
miraimc.command.mirai.sendgroupmessageAllow /mirai sendgroupmessageOP
miraimc.command.mirai.checkonlineAllow /mirai checkonlineOP
miraimc.command.mirai.autologinAllow /mirai autologinOP
miraimc.command.miraimcAllow use of /miraimcOP
miraimc.command.miraimc.*Allow all subcommands of /miraimcOP
miraimc.command.miraimc.bindAllow /miraimc bind and subcommandsOP
miraimc.command.miraimc.reloadAllow /miraimc reloadOP

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.

Совместимость

Minecraft: Java Edition

1.20–1.21.81.18–1.19.41.16–1.17.11.14–1.15.21.12–1.13.21.10–1.11.21.8–1.9.41.6–1.7.101.4–1.5.21.2.1–1.3.21.0–1.1

Создатели

Детали

Лицензия:AGPL-3.0-or-later
Опубликован:2 года назад
Обновлён:2 месяца назад
Главная