zh
切换语言
  1. PowerNukkitX
  2. 快速入门
  3. 服务器配置

    1. server.properties
    2. nukkit.yml
    3. pnx-cli-config.ini
    4. 反矿透
    5. 资源包加密
    6. 硬件加速压缩
    7. 使用WaterDogPE
    8. 超平坦世界
  4. FAQ

    1. 新人必看
    2. PNX-CLI教程
    3. 常见问题
    4. Terra问题
    5. 重生点问题
    6. 转换地图
  5. 开发者文档

    1. Java

      1. 跳转到JavaDoc
      2. Mod API

        1. 自定义方块
        2. 自定义物品
        3. 自定义实体
        4. 自定义附魔
      3. 生物AI

        1. 行为
        2. 记忆
        3. 传感器
        4. 运动控制器
        5. 寻路器
        6. 行为组
        7. 工作周期
    2. JavaScript

      1. 配置开发环境
      2. 基于LLSELib开发
      3. Hello World
      4. 基本知识
      5. 事件监听
      6. 常见开发问题
    3. API

      1. 简介
      2. 通用API
      3. Git-API
      4. 下载API
      5. 延迟返回API
      6. 插件API
    4. 实用资源

      1. 事件对照表
      2. 物品方块ID

插件API

此处提供PNX插件站相关API。

获取插件列表

url:

参数:

返回示例:

{
  "size": 2,
  "totalSize": 81,
  "plugins": [
    {
      "id": "Physical-Science-Academy/NoCheatPlus",
      // 仓库ID
      "owner": "Physical-Science-Academy",
      // 仓库所有者
      "name": "NoCheatPlus",
      // 仓库名
      "description": "Anti-Cheat plugin for Minecraft (Nukkit/PM1E/PowerNukkitX)",
      "mainLanguage": "Kotlin",
      // 编写此插件的主要语言
      "lastUpdateAt": 1677765763000,
      // 此仓库最后一次更新的时间
      "topics": "anticheat nukkit minecraft plugin bedrock ncp mcbe",
      // 仓库标签
      "star": 87,
      "iconDownloadID": 89,
      // 图标文件下载ID,可通过DownloadAPI下载图标
      "pluginName": "NoCheatPlus",
      // 插件名
      "mainClass": "net.catrainbow.nocheatplus.NoCheatPlus",
      // 插件主类(JVM插件)/入口点(JS插件)
      "dependencies": [
        // 依赖项,此字段可能不存在
        "KotlinLib"
      ],
      "softDependencies": [
        // 可选依赖项,此字段可能不存在
        "DBLib"
      ],
      "banned": false,
      "qualityScore": 8986,
      // 插件评分,由更新、star、文档等因素综合决定,可能为负数
      "editorRecommendScore": 0,
      "lastFullIndexTime": 1677938264977
      // PNX插件站最后一次全量索引此插件信息的时间
    },
    {
      "id": "KCodeYT/VanillaGenerator",
      "owner": "KCodeYT",
      "name": "VanillaGenerator",
      "description": "A minecraft: bedrock edition world generator, which setups a bedrock dedicated server to clone chunks on the PowerNukkitX server.",
      "mainLanguage": "Java",
      "lastUpdateAt": 1677372828000,
      "star": 33,
      "iconDownloadID": 98,
      "pluginName": "VanillaGeneratorPlugin",
      "mainClass": "de.kcodeyt.vanilla.VanillaGeneratorPlugin",
      "banned": false,
      "qualityScore": 3351,
      "editorRecommendScore": 0,
      "lastFullIndexTime": 1677938290581
    }
  ]
}

获取指定插件信息

url:

参数:

返回示例:

{
  "id": "PowerNukkitX/ChiliShop",
  "owner": "PowerNukkitX",
  "name": "ChiliShop",
  "description": "A plugin for PowerNukkitX, Based on the PepperShop",
  "mainLanguage": "Java",
  "lastUpdateAt": 1663006782000,
  "star": 0,
  "iconDownloadID": 90,
  "pluginName": "ChiliShop",
  "mainClass": "cn.innc11.chilishop.ChiliShop",
  "dependencies": [
    "EconomyAPI"
  ],
  "softDependencies": [
    "Residence",
    "Land"
  ],
  "banned": false,
  "qualityScore": -1135,
  "editorRecommendScore": 0,
  "lastFullIndexTime": 1677984732132
}

通过关键词搜索插件

通过关键词搜索插件,此接口会返回与关键词相关的插件列表,搜索考虑的因素包括插件名,作者名,插件topic,介绍,编程语言,主类,依赖库,星标等。

注意事项:

url:

参数:

返回示例:
/plugin/search?keywords=world

{
  "size": 4,
  "totalSize": 91,
  "plugins": [
    {
      "owner": "WanneSimon",
      "star": 0,
      "mainClass": "cc.wanforme.nukkit.nsworld.NSWorld",
      "description": "Multi world plugin",
      "mainLanguage": "Java",
      "lastFullIndexTime": 1678640203697,
      "pluginName": "ns-world",
      "iconDownloadID": 107,
      "editorRecommendScore": 0,
      "qualityScore": -1385,
      "name": "ns-world",
      "lastUpdateAt": 1661873542000,
      "id": "WanneSimon-ns-world",
      "banned": false
    },
    {
      "owner": "PowerNukkitX",
      "star": 2,
      "mainClass": "com.sk89q.worldedit.bukkit.WorldEditPlugin",
      "description": "Blazingly fast world manipulation for artists, builders and everyone else: https://www.spigotmc.org/resources/13932/",
      "softDependencies": [
        "Vault"
      ],
      "mainLanguage": "Java",
      "lastFullIndexTime": 1678691584814,
      "pluginName": "FastAsyncWorldEdit",
      "iconDownloadID": 90,
      "editorRecommendScore": 0,
      "qualityScore": 243,
      "name": "FastAsyncWorldEdit-PNX",
      "lastUpdateAt": 1677981372000,
      "id": "PowerNukkitX-FastAsyncWorldEdit-PNX",
      "banned": false
    },
    {
      "owner": "KCodeYT",
      "star": 33,
      "mainClass": "de.kcodeyt.vanilla.VanillaGeneratorPlugin",
      "description": "A minecraft: bedrock edition world generator, which setups a bedrock dedicated server to clone chunks on the PowerNukkitX server.",
      "mainLanguage": "Java",
      "lastFullIndexTime": 1678640210976,
      "pluginName": "VanillaGeneratorPlugin",
      "iconDownloadID": 98,
      "editorRecommendScore": 0,
      "qualityScore": 3293,
      "name": "VanillaGenerator",
      "lastUpdateAt": 1677372828000,
      "id": "KCodeYT-VanillaGenerator",
      "banned": false
    },
    {
      "owner": "MEFRREEX",
      "star": 0,
      "mainClass": "theoni.anticaps.Main",
      "topics": "pnx-plugin",
      "description": "Makes words from uppercase to lowercase",
      "mainLanguage": "Java",
      "lastFullIndexTime": 1678632998170,
      "pluginName": "AntiCaps",
      "iconDownloadID": 105,
      "editorRecommendScore": 0,
      "qualityScore": 279,
      "name": "AntiCaps",
      "lastUpdateAt": 1678451185000,
      "id": "MEFRREEX-AntiCaps",
      "banned": false
    }
  ]
}

绘制依赖关系图

以mermaid格式绘制插件依赖关系图。

该API为延迟返回API。

url:

参数:

返回示例:

{
  "success": true,
  "reason": null,
  "mermaid": "graph TD\n    LLSELib(LLSELib)\n    EconomyEvent-.->LLSELib\n    LlamaEconomy-.->LLSELib\n    EconomyAPI-.->LLSELib\n"
}

© PowerNukkitX 开发组