Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MineP2P Plugin Store

MineP2P 官方插件商店,提供 Python 风格的插件 DSL。

使用方法

# 列出所有插件
mp store

# 搜索插件
mp search welcome

# 安装插件
mp install welcome

# 查看已安装
mp plugins

插件列表

插件 版本 描述
welcome 3.0.0 自动欢迎、智能响应、小游戏
dice 3.0.0 掷骰子、抛硬币、石头剪刀布、彩票
translate 3.0.0 中英常用短语互译
joke 2.0.0 随机程序员笑话
rps 2.0.0 石头剪刀布对战 + 猜数字

开发插件

创建 .mp 文件(Python 风格):

name: "my-plugin"
version: "1.0.0"
author: "你的名字"
desc: "插件描述"

if event == "join":
    pl.broadcast("🎉 {peer} 加入了房间!")

if command == "/hello":
    pl.print("Hello, World!")

完整文档见:minep2p/plugins/README.md

提交插件

  1. Fork 本仓库
  2. 添加你的 .mp 文件到 plugins/ 目录
  3. 更新 index.json
  4. 提交 Pull Request

插件 DSL 特性

  • Python 风格语法if command == "/xxx": + 4 空格缩进
  • 事件支持joinleavemessage
  • 条件判断if args == "xxx":if "xxx" in message:else:
  • 动作方法pl.print()pl.broadcast()pl.log()pl.set()pl.run()
  • 模板变量{peer}{room}{args}{time}{rand:1-6}{coin}{pick:A,B,C}

© Vexify 2026 All Rights Reserved.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors