-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
4523-Spigot-739dbf3-d116f42 (MC: 1.21.8) (Implementing API version 1.21.8-R0.1-SNAPSHOT)
-
Yes
Player#showDialog() should support similar functionality to `net.md_5.bungee.api.dialog.chat.ShowDialogClickEvent()` where it can accept a string, to open data pack-defined dialogs.
Vanilla provides `/dialog show` which also lists dialogs from data packs.
Demo data pack is attached.
- Extract into `world/datapacks/`
- Start Spigot server
- Connect as a player
- Type `/dialog show @p spigot_demo:custom_settings` to ensure it loaded
- Attempt to open the dialog using the Spigot API