A Mirai-Console Plugin

Related tags

Plugin MuteGames
Overview

MuteGames

一个以 Mirai-Console 为基础开发并为了满足群友PVP需求和抖M需求开发的禁言游戏集合

开始使用

插件需要以 Mirai-Console

为基础,你可以下载 MCL 作为你的Mirai插件载入器

与此同时,本插件需要 Mirai 官方插件 chat-command

使用之前请先用参考权限节点来开启插件权限

请注意:当用户权限大于等于机器人所在权限时(如机器人是管理员用户为群主),机器人不会对游戏请求做任何回复

权限节点

 |- com.evolvedghost.mutegames:*                      The base permission
 |  |- com.evolvedghost.mutegames:command.banme       自裁指令
 |  |- com.evolvedghost.mutegames:command.duel        决斗指令
 |  |- com.evolvedghost.mutegames:command.mg          MuteGams管理指令
 |  |- com.evolvedghost.mutegames:command.roulette    俄罗斯轮盘指令

插件调用的是Mirai自带的权限管理系统,你可以在控制台输入?来获取帮助,通常权限的添加方式为:

/permission add <被许可人 ID> <权限 ID> # 授权一个权限

<被许可人 ID> 可以为QQ号或者通配符*来代表所有用户

<权限 ID> 即上述权限名称,可按照需求添加

一个例子为:/permission add * com.evolvedghost.mutegames:*,即为所有用户添加本插件所有权限

插件命令

插件分为两种命令,一种为普通命令一种为管理员命令

默认别名为插件预设置的alias,普通命令的别名你可以在Config中更改

普通命令

指令 默认别名 功能
(/)banMe 自裁 自裁(直接获得一个禁言)
(/)banMe [seconds]<Int> 自裁 [seconds]<Int> 自定义秒数禁言
(/)duel 决斗 决斗指令(两位群友以决斗的方式赢取禁言)
(/)roulette 轮盘,俄罗斯轮盘 俄罗斯轮盘赌(以轮盘赌的方式赢取禁言)

管理命令

指令 默认别名(不可更改) 功能
/mg dualStop /mg 停止决斗 停止本群的决斗
/mg reload /mg 重载 重载本插件的配置项
/mg rouletteStop /mg 停止轮盘 停止本群的俄罗斯轮盘

插件配置

插件的配置项储存在config\com.evolvedghost.mutegames目录下,有以下文件

文件名 作用
admin.yml 配置管理员命令和插件基础设置
banMe.yml 配置自裁设置
duel.yml 配置决斗设置
roulette.yml 配置轮盘赌设置

相应的设置在文件中应有详细注明

编译

如果您需要自行编译,使用在文件目录使用以下命令即可

Windows:./gradlew.bat buildPlugin

Linux:./gradlew buildPlugin

编译好的jar文件可以在/build/mirai下找到

特别感谢

Mirai 提供QQ机器人

You might also like...
IntelliJ Plugin for Android Parcelable boilerplate code generation.
IntelliJ Plugin for Android Parcelable boilerplate code generation.

IntelliJ/Android Studio Plugin for Android Parcelable boilerplate code generation This tool generates an Android Parcelable implementation based on fi

A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.
A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.

ADB Idea A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development. The following commands are provided: Uninst

Android Studio plugin which automatically generates drawable selectors from appropriately named resources.
Android Studio plugin which automatically generates drawable selectors from appropriately named resources.

SelectorChapek for Android This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources. How to in

Maven Plugin for Android Application development and more

ANDROID MAVEN PLUGIN A plugin for Android application development with Apache Maven 3.0.5+ and the Android SDK. Please check out our website for furth

 Gradle plugin which downloads and manages your Android SDK.
Gradle plugin which downloads and manages your Android SDK.

DEPRECATED This plugin is deprecated and is no longer being developed. Tools and dependencies are automatically downloaded using version 2.2.0 of the

A Gradle plugin to support the Groovy language for building Android apps

Groovy language support for Android Deprecated: This plugin has been deprecated in favor of Kotlin which has the full support of JetBrains and Google.

Add a different ribbon to each of your Android app variants using this gradle plugin. Of course, configure it as you will

Easylauncher gradle plugin for Android Modify the launcher icon of each of your app-variants using simple gradle rules. Add ribbons of any color, over

An easy-to-use sbt plugin for working with all Android projects
An easy-to-use sbt plugin for working with all Android projects

Build Android Projects Using SBT http://scala-android.org/ Change log | FAQ Auto-import from gradle using sbt-android-gradle NOTE: 1.6.0 is the last v

A Gradle Plugin that removes unused resources in Android projects.
A Gradle Plugin that removes unused resources in Android projects.

#Lint Cleaner Plugin Removes unused resources reported by Android lint including strings, colors and dimensions. Depracated As of Android Studio 2.0+

Releases(v0.0.3)
Owner
null
gradle-android-scala-plugin adds scala language support to official gradle android plugin

gradle-android-scala-plugin gradle-android-scala-plugin adds scala language support to official gradle android plugin. See also sample projects at htt

saturday06 345 Dec 10, 2022
eventbus-intellij-plugin 3.8 0.0 L1 Java Plugin to navigate between events posted by EventBus.

eventbus-intellij-plugin Plugin to navigate between events posted by EventBus. Post to onEvent and onEvent to Post Install There are two ways. Prefere

Shinnosuke Kugimiya 315 Aug 8, 2022
IntelliJ Idea Astor Plugin is a plugin that integrates Astor in Intellij Idea

IntelliJ Idea Astor Plugin IntelliJ Idea Astor Plugin is a plugin that integrates Astor in Intellij Idea. It communicates with a local/remote program

null 4 Aug 28, 2021
Intellij-platform-plugin-template - IntelliJ Platform Plugin Template

IntelliJ Platform Plugin Template TL;DR: Click the Use this template button and

null 0 Jan 1, 2022
BuildPlots-Plugin - PaperMC-Plugin for build contests written in Kotlin.

BuildPlotsPlugin PaperMC-Plugin for build contests. This is my first time using Kotlin and the first plugin I've written after a long time. It is stil

Lukas Heinzl 0 Jan 1, 2022
K6-intellij-plugin - IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your IntelliJ IDE

IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your Intel

Mikhail Bolotov 8 Jan 2, 2023
Ownership-gradle-plugin - Gradle code ownership verification plugin

Gradle code ownership verification plugin A gradle plugin that will verify owner

null 4 Dec 15, 2022
GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.

Gradle Play Publisher Gradle Play Publisher is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and

null 3.9k Dec 30, 2022
A Gradle plugin to report the number of method references in your APK on every build.

Dexcount Gradle Plugin A Gradle plugin to report the number of method references in your APK, AAR, or java module. This helps you keep tabs on the gro

Keepsafe 3k Dec 29, 2022
This plugin help you to set material design icon to your project.

Android Material Design Icon Generator Plugin This plugin help you to set material design icons to your Android project. Installation Manually Downloa

Yusuke Konishi 2.4k Dec 30, 2022