mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancydialogs: One title is enough
This commit is contained in:
@@ -27,7 +27,6 @@ public class ConfirmationDialog {
|
||||
this.dialogData = new DialogData(
|
||||
"confirmation_dialog_" + UUID.randomUUID(),
|
||||
this.title,
|
||||
this.title,
|
||||
false,
|
||||
List.of(
|
||||
new DialogBodyData(this.question)
|
||||
|
||||
@@ -21,7 +21,6 @@ public class NoticeDialog {
|
||||
this.dialogData = new DialogData(
|
||||
"notice_dialog_" + UUID.randomUUID(),
|
||||
this.title,
|
||||
this.title,
|
||||
true,
|
||||
List.of(
|
||||
new DialogBodyData(this.text)
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
package com.fancyinnovations.fancydialogs.api.data;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record DialogData(
|
||||
@NotNull String id,
|
||||
@NotNull String title,
|
||||
@Nullable String externalTitle,
|
||||
boolean canCloseWithEscape,
|
||||
@NotNull List<DialogBodyData> body,
|
||||
@NotNull List<DialogButton> buttons
|
||||
|
||||
Reference in New Issue
Block a user