Added PendingPlayer for the API#638
Conversation
|
I think that indeed some API is currently missing for the early stages, especially since Floodgate already knows whether the player is a valid Floodgate player when it receives the handshake packet. |
# Conflicts: # spigot/src/main/java/org/geysermc/floodgate/listener/SpigotListener.java
Added to the API:
getPendingPlayer(InetSocketAddress address)
Get a pending FloodgatePlayer by their connection address.
This is useful in PreLoginEvent where UUID is not yet available.
getPendingPlayerByUsername(String rawUsername)
Get a pending FloodgatePlayer by their raw username (without prefix).
This is useful in PreLoginEvent where the username hasn't been modified yet.