mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-24 17:11:58 +01:00
Merge pull request #179 from Project-Cepi/remove-player-init
Add removePlayerInitialization function
This commit is contained in:
commit
14af9a1b6d
@ -302,6 +302,17 @@ public final class ConnectionManager {
|
|||||||
this.playerInitializations.add(playerInitialization);
|
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()}.
|
* Gets the kick reason when the server is shutdown using {@link MinecraftServer#stopCleanly()}.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user