From 7c61d82ce6e769a7d838212b2d9e2783279c0179 Mon Sep 17 00:00:00 2001 From: AlexDev_ Date: Tue, 7 Nov 2023 16:02:09 +0100 Subject: [PATCH] Fixed wrong method in docs --- docs/API-Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API-Examples.md b/docs/API-Examples.md index 84acc41..eed53fc 100644 --- a/docs/API-Examples.md +++ b/docs/API-Examples.md @@ -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"); } ```