# 1.3 - 插件的选择：常见 API 插件

## 复习回顾：什么是 API 插件？

**API** 插件的功能就是一个超市，其他插件在这个超市中各取所需，完成对应的工作。

**纯 API 插件** 本身往往对服主来说是不提供任何功能的，也就是说它只是超市本体，如果你想要在这个超市买到想要东西，你还需要一个拥有实际功能的插件帮助你，充当打工人的身份。

## 解释：前置插件

**API** 插件是前置插件的一种类型，也是最常见的类型，但是有的插件不提供 **API**，或者不止止是仅有纯 **API** 功能，插件作者又想用插件里面的某个功能，这种情况下可能会出现某个商店菜单需要菜单插件才能正常使用，而很显然菜单插件对服主来说并不是没有任何功能的插件，所以这时我们称菜单插件是商店插件的前置。

## 插件选择：Vault

不好意思，略了。

## 插件选择：ProtocolLib

该插件在 SpigotMC 的地址是：<https://www.spigotmc.org/resources/protocollib.1997/>

如果你是 **1.19** 版本的服主，应该留意一下下作者在插件介绍留下的话：

<figure><img src="/files/avJFFDwPE3i1wVYW0ThB" alt=""><figcaption></figcaption></figure>

里面出现的 “use”、“for”、“Minecraft” 和版本号我想你应该知道是什么意思，组起来就是如果你是对应版本号的服主，点击对应链接下载对应的版本的插件。

这个插件是很多插件都会用到的前置插件，别问，先装就对了。

## 插件选择：PlaceholderAPI

该插件在 SpigotMC 的地址是：<https://www.spigotmc.org/resources/placeholderapi.6245/>

这个插件我可以稍稍提一下，变量符，通过它可以实现多个插件之间交互数据，例如在计分板插件上显示玩家经济插件中的还有多少钱。

## 本节小结

现在，你的服务器应该有如下 5 个插件了：

* Vault
* 任意一个与 **Vault** 挂钩的插件
* PlayerPoints
* ProtocolLib
* PlaceholderAPI


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.superiormc.cn/new-user-doc/yi-qie-de-qi-dian/1.3-cha-jian-de-xuan-ze-chang-jian-api-cha-jian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
