forked from Upstream/Velocitab
Fixed wrong method in docs
This commit is contained in:
parent
3bb457f14e
commit
7c61d82ce6
@ -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");
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user