diff --git a/docs/API-Examples.md b/docs/API-Examples.md index 10c5b99..84acc41 100644 --- a/docs/API-Examples.md +++ b/docs/API-Examples.md @@ -65,11 +65,11 @@ Optional customName = velocitabAPI.getCustomPlayerName(player); You can listen to `PlayerAddedToTabEvent` to get notified when a player is added to a group TabList.
-Example — Listening to PlayerAddToTabEvent +Example — Listening to PlayerAddedToTabEvent ```java @Subscribe -public void onPlayerAddToTab(PlayerAddToTabEvent event) { +public void onPlayerAddedToTab(PlayerAddedToTabEvent event) { VelocitabAPI velocitabAPI = VelocitabAPI.getInstance(); velocitabAPI.setCustomPlayerName(event.getPlayer().getPlayer(), "CustomName"); }