From f279782c820bb90c8a4d97751e6d351059670d70 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 21 Jun 2025 12:57:58 +0200 Subject: [PATCH] docs: Update api pages --- docs/src/fancydialogs/api/getting-started.md | 12 +++++++----- docs/src/fancyholograms/api/getting-started.md | 2 +- docs/src/fancynpcs/api/getting-started.md | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/src/fancydialogs/api/getting-started.md b/docs/src/fancydialogs/api/getting-started.md index 51e03202..8057bb07 100644 --- a/docs/src/fancydialogs/api/getting-started.md +++ b/docs/src/fancydialogs/api/getting-started.md @@ -52,14 +52,16 @@ NoticeDialog.show(player, "message"); ## Show a confirmation dialog ```java -CompletableFuture confirmed = new ConfirmationDialog("title", "question", "confirmText", "cancelText").ask(player); -// or -boolean confirmed = ConfirmationDialog.ask(player, "question"); +new ConfirmationDialog("Are you sure you want to reload the configuration?") + .withTitle("Confirm reload") + .withOnConfirm(() -> player.sendMessage("Reloading configuration...")) + .withOnCancel(() -> player.sendMessage("Reload cancelled.")) + .ask(player); ``` ## JavaDocs and help -You can find the JavaDocs for the FancyNpcs API [here](https://repo.fancyinnovations.com/javadoc/releases/de/oliver/FancyNpcs/latest). +You can find the JavaDocs for the FancyDialogs API [here](https://repo.fancyinnovations.com/javadoc/releases/de/oliver/FancyDialogs/latest). -Join the [FancyInnovations Discord](https://discord.gg/ZUgYCEJUEx) for help and support. There is a dedicated channel for help about the api (`#npcs-dev`). +Join the [FancyInnovations Discord](https://discord.gg/ZUgYCEJUEx) for help and support. There is a dedicated channel for help about the api (`#dialogs-api`). ``` \ No newline at end of file diff --git a/docs/src/fancyholograms/api/getting-started.md b/docs/src/fancyholograms/api/getting-started.md index bf037532..7c116afb 100644 --- a/docs/src/fancyholograms/api/getting-started.md +++ b/docs/src/fancyholograms/api/getting-started.md @@ -131,4 +131,4 @@ manager.removeHologram("hologram_name"); You can find the JavaDocs for the FancyHolograms API [here](https://repo.fancyinnovations.com/javadoc/releases/de/oliver/FancyHolograms/latest). -Join the [FancyInnovations Discord](https://discord.gg/ZUgYCEJUEx) for help and support. There is a dedicated channel for help about the api (`#holograms-dev`). +Join the [FancyInnovations Discord](https://discord.gg/ZUgYCEJUEx) for help and support. There is a dedicated channel for help about the api (`#holograms-api`). diff --git a/docs/src/fancynpcs/api/getting-started.md b/docs/src/fancynpcs/api/getting-started.md index 9fb92e11..d9a3c25d 100644 --- a/docs/src/fancynpcs/api/getting-started.md +++ b/docs/src/fancynpcs/api/getting-started.md @@ -136,5 +136,5 @@ npc.removeForAll(); You can find the JavaDocs for the FancyNpcs API [here](https://repo.fancyinnovations.com/javadoc/releases/de/oliver/FancyNpcs/latest). -Join the [FancyInnovations Discord](https://discord.gg/ZUgYCEJUEx) for help and support. There is a dedicated channel for help about the api (`#npcs-dev`). +Join the [FancyInnovations Discord](https://discord.gg/ZUgYCEJUEx) for help and support. There is a dedicated channel for help about the api (`#npcs-api`). ``` \ No newline at end of file