mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
Deprecate #addPlayerInitialization
This commit is contained in:
parent
b51362aa74
commit
e002890a91
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user