mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-13 07:09:51 +01:00
Add removePlayerInitialization func
This commit is contained in:
parent
4c3215bf1b
commit
a982c4f11e
@ -302,6 +302,17 @@ public final class ConnectionManager {
|
||||
this.playerInitializations.add(playerInitialization);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes an existing player initialization consumer.
|
||||
* <p>
|
||||
* Removal of player initializations should be done by reference, and not cloning.
|
||||
*
|
||||
* @param playerInitialization the {@link Player} initialization consumer
|
||||
*/
|
||||
public void removePlayerInitialization(@NotNull Consumer<Player> playerInitialization) {
|
||||
this.playerInitializations.remove(playerInitialization);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the kick reason when the server is shutdown using {@link MinecraftServer#stopCleanly()}.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user