Deprecate #addPlayerInitialization

This commit is contained in:
TheMode 2021-06-18 03:21:03 +02:00
parent b51362aa74
commit e002890a91

View File

@ -305,7 +305,9 @@ public final class ConnectionManager {
* or even {@link AsyncPlayerPreLoginEvent}. * or even {@link AsyncPlayerPreLoginEvent}.
* *
* @param playerInitialization the {@link Player} initialization consumer * @param playerInitialization the {@link Player} initialization consumer
* @deprecated use the event API instead
*/ */
@Deprecated
public void addPlayerInitialization(@NotNull Consumer<Player> playerInitialization) { public void addPlayerInitialization(@NotNull Consumer<Player> playerInitialization) {
this.playerInitializations.add(playerInitialization); this.playerInitializations.add(playerInitialization);
} }