From e94515c97224b7bd37568c4be36fee4052966320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Sat, 12 Oct 2024 16:29:59 +0300 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39505e0..4c0c487 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ public final class View implements ViewHandler { } ``` #### Annotation Version + ```java @ViewCancelOnClick @ViewType(InvType.CHEST) @@ -81,8 +82,8 @@ public final class View implements ViewHandler { public final class View { @ViewOnTitle - public String onTitle(final ContextBase ctx, final Player viewer) { - return "Player: " + player.getName(); + public CompletableFuture onTitle(final ContextBase ctx, final Player viewer) { + return CompletableFuture.completedFuture("Player: " + player.getName()); } @ElementSlotLayout('x')