
一个允许你创建复杂对话(元素链)并向玩家展示的插件。
要求
需要 Java 21(或更高版本)以及 Paper 1.20.1 #161(或更高版本)。
功能
Dialogs 允许你实现以下功能:
- 创建类似 NPC 的动画对话。
- 创建复杂的延迟动作链。
- 从广泛可用的动作中进行选择,并按喜好自定义它们。
chat_message - 向指定受众发送聊天消息。
actionbar_animation - 向目标发送指定文本的打字动画。
console_command - 使控制台执行命令。
player_command - 使目标玩家执行命令。
pause - 在继续执行下一个动作之前,等待指定的刻数。
- ...更多功能即将推出!
除 actionbar_animation 外的所有元素类型均内置支持 PlaceholderAPI。
更详细的指南可在首次启动插件时生成的 plugins/Dialogs/dialogs/default.json 文件中找到。
建议与 FancyNPCs、LuaLink、Skript、WorldGuardExtraFlags 或其他允许在特定操作时执行控制台命令的插件配合使用。
默认配置展示
构建
某些依赖项使用了 GitHub Gradle Registry,因此可能需要额外的配置步骤才能正确构建项目。
# 克隆仓库。
$ git clone https://github.com/Grabsky/Dialogs.git
# 进入克隆的仓库。
$ cd Dialogs
# 编译并构建产物。
$ gradlew clean build
贡献
本项目欢迎贡献。非常感谢你在提升性能、添加新功能或修复 bug 方面提供的帮助。

Plugin that grants you ability to create complex dialogs (chains of elements) and display them to your players.
Requirements
Requires Java 21 (or higher) and Paper 1.20.1 #161 (or higher).
Features
Dialogs allows you to do the following:
- Create animated NPC-like dialogs.
- Create complex chains of delayed actions.
- Choose from wide selection of available actions and customize them as you like.
chat_message - Sends a chat message to specified audience.
actionbar_animation - Sends a typing animation of specified text to the target.
console_command - Makes console execute a command.
player_command - Makes target player execute a command.
pause - Waits for desired amount of ticks, before proceeding to the next action.
- ...more to come in the future!
Every element type except for actionbar_animation have built-in support for PlaceholderAPI.
More detailed guide can be found in the plugins/Dialogs/dialogs/default.json file that is created the first time you start the plugin.
Recommended to be used along with FancyNPCs, LuaLink, Skript, WorldGuardExtraFlags or other plugins that allow for execution of console commands upon certain action.
Default Configuration Showcase
Building
Some dependencies use GitHub Gradle Registry and thus may require extra configuration steps for the project to build properly.
# Cloning repository.
$ git clone https://github.com/Grabsky/Dialogs.git
# Entering cloned repository.
$ cd Dialogs
# Compiling and building artifacts.
$ gradlew clean build
Contributing
This project is open for contributions. Help in regards of improving performance, adding new features or fixing bugs is greatly appreciated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧