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')