
[](https://github.com/Grabsky/Dialogues/releases/latest)
[](https://modrinth.com/plugin/dialogues)
[](https://www.codefactor.io/repository/github/grabsky/dialogues/issues/main)
[](https://modrinth.com/plugin/dialogues)
一个插件,它赋予您创建复杂对话 *(元素链)* 并将其显示给您的玩家的能力。
一个插件,它赋予您创建复杂对话 *(元素链)* 并将其显示给您的玩家的能力。
## 要求 需要 **Java 21** (或更高版本)和 **Paper 1.20.1 #161**(或更高版本)。
## 功能 Dialogs 允许您执行以下操作: - 创建动画 NPC 风格的对话。 - 创建复杂的延迟操作链。 - 从广泛的选择的可用操作中进行选择并根据需要自定义它们。 - `chat_message` - 将聊天信息发送给指定受众。 - `actionbar_animation` - 向目标发送指定文本的打字动画。 - `console_command` - 使控制台执行命令。 - `player_command` - 使目标玩家执行命令。 - `pause` - 等待所需的刻数,然后再进行到下一个操作。 - ...未来将推出更多! 除了 `actionbar_animation` 之外,每种元素类型都内置了对 **[PlaceholderAPI](https://github.com/PlaceholderAPI/PlaceholderAPI)** 的支持。 更详细的指南可以在首次启动插件时创建的 [`plugins/Dialogs/dialogs/default.json`](https://github.com/Grabsky/Dialogs/blob/main/src/main/resources/example.json) 文件中找到。 建议与 **[FancyNPCs](https://github.com/FancyMcPlugins/FancyNpcs)**,**[LuaLink](https://github.com/LuaLink/LuaLink)**,**[Skript](https://github.com/SkriptLang/Skript)**,**[WorldGuardExtraFlags](https://github.com/aromaa/WorldGuardExtraFlags)** 或允许 **执行控制台命令** 的其他插件配合使用。
## 默认配置展示
## 构建 某些依赖项使用 **[GitHub Gradle Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry)**,因此可能需要额外的配置步骤以使项目能够正确构建。 ```shell # 克隆仓库。 $ git clone https://github.com/Grabsky/Dialogs.git # 进入克隆的仓库。 $ cd Dialogs # 编译和构建工件。 $ gradlew clean build ```
## 贡献 这个项目对贡献是开放的。 改进性能、添加新功能或修复错误的帮助将不胜感激。