Skip to content

Commit

Permalink
Fixed wrong method in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdev03 committed Nov 7, 2023
1 parent 3bb457f commit 7c61d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ You can listen to `PlayerAddedToTabEvent` to get notified when a player is added
@Subscribe
public void onPlayerAddedToTab(PlayerAddedToTabEvent event) {
VelocitabAPI velocitabAPI = VelocitabAPI.getInstance();
velocitabAPI.setCustomPlayerName(event.getPlayer().getPlayer(), "CustomName");
velocitabAPI.setCustomPlayerName(event.player().getPlayer(), "CustomName");
}
```

Expand Down

0 comments on commit 7c61d82

Please sign in to comment.