diff --git a/src/main/java/net/minestom/server/network/ConnectionManager.java b/src/main/java/net/minestom/server/network/ConnectionManager.java index 66024bb5c..8e4f8182b 100644 --- a/src/main/java/net/minestom/server/network/ConnectionManager.java +++ b/src/main/java/net/minestom/server/network/ConnectionManager.java @@ -305,7 +305,9 @@ public final class ConnectionManager { * or even {@link AsyncPlayerPreLoginEvent}. * * @param playerInitialization the {@link Player} initialization consumer + * @deprecated use the event API instead */ + @Deprecated public void addPlayerInitialization(@NotNull Consumer playerInitialization) { this.playerInitializations.add(playerInitialization); }