Skip to main content

请保护好自己的rcon配置项,任何问题与本插件无关

  • 一个可以远程操控我的世界java服务器的bot
  • 此插件配置视频教程:点我查看视频教程
  • 关于如何使用

前提(必要)

  • 克隆整个仓库,将本目录下的async_mcrcon.py放入site-packages目录下
  • 虚拟环境同理,放入python包路径即可
  • pip install pillow
  • pip install async-mcrcon
  • nb plugin install nonebot-plugin-txt2img

我的世界功能部分

  1. 请务必保护好自己的rcon信息,此信息为你的敏感信息
  2. 在.env中配置服务器的rcon项

bot配置

  • 配置一个go-cq端作为无头QQ端

主体部分

功能介绍

  1. 向我的世界JAVA版服务端发送指令并返回图片回执
  2. 无脑同意进群(需要在mcrcon.py中124行处配置群号)
  3. 响应关键词回复
  4. 入群欢迎
  5. 定时消息

如何开启rcon配置

  1. 在服务端根目录server.properties内添加三个配置项
  2. rcon.port=
  3. rcon.password=
  4. enable-rcon=true

env配置项

config example usage
rconhost rconhost = "127.0.0.1" 服务器ip
rconpassword rconpassword = "114514" 服务器rcon密码
rconpor rconport = 114514 服务器rcon端口
groupset groupset=[114514] 开启入群欢迎的群号
zr zr=[1919810] 响应执行命令的主人QQ号
tit tit=仙贝 图片的title

Metadata

Release files for nonebot-plugin-mcport 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-mcport 0.1.6
File Size Uploaded Provenance
nonebot-plugin-mcport-0.1.6.tar.gz 7.4 kB Without provenance Details

Release files / nonebot-plugin-mcport-0.1.6.tar.gz

Download URL nonebot-plugin-mcport-0.1.6.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a5d4feef05785b6b2ef2a147c35a44cf7f36dee7699783a2fefe3c0e853eadbb
BLAKE2b-256 checksum
How to use checksums
8ff298c375cc5dfabed123354f929ea6c83e89da33b2a7f52e14e67a8d0364ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for nonebot-plugin-mcport 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page