mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-13 19:52:08 +01:00
Added API to get player ha proxy address
This commit is contained in:
parent
5e1dc7cf47
commit
daebdc24e7
@ -267,6 +267,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||
@Nullable
|
||||
public InetSocketAddress getAddress();
|
||||
|
||||
// Paper start - Add API to get player's proxy address
|
||||
/**
|
||||
* Gets the socket address of this player's proxy
|
||||
*
|
||||
* @return the player's proxy address, null if the server doesn't have Proxy Protocol enabled, or the player didn't connect to an HAProxy instance
|
||||
*/
|
||||
@Nullable
|
||||
public InetSocketAddress getHAProxyAddress();
|
||||
// Paper end - Add API to get player's proxy address
|
||||
|
||||
/**
|
||||
* Gets if this connection has been transferred from another server.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user