#3823: Add client brand API

This commit is contained in:
Outfluencer
2025-04-21 08:28:16 +02:00
committed by GitHub
parent 1279cca971
commit 89069a362d
3 changed files with 17 additions and 0 deletions

View File

@@ -382,4 +382,12 @@ public interface ProxiedPlayer extends Connection, CommandSender
*/
@ApiStatus.Experimental
void transfer(String host, int port);
/**
* Gets the client brand of this player.
* If the player has not sent a brand packet yet, it will return null.
*
* @return the brand of the client, or null if not received yet
*/
String getClientBrand();
}