Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek committed Oct 12, 2024
1 parent bc62585 commit e94515c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public final class View implements ViewHandler {
}
```
#### Annotation Version

```java
@ViewCancelOnClick
@ViewType(InvType.CHEST)
Expand All @@ -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<String> onTitle(final ContextBase ctx, final Player viewer) {
return CompletableFuture.completedFuture("Player: " + player.getName());
}

@ElementSlotLayout('x')
Expand Down

0 comments on commit e94515c

Please sign in to comment.