diff --git a/api/src/main/java/com/velocitypowered/api/proxy/Player.java b/api/src/main/java/com/velocitypowered/api/proxy/Player.java index 71f6d6006..1e5fa027d 100644 --- a/api/src/main/java/com/velocitypowered/api/proxy/Player.java +++ b/api/src/main/java/com/velocitypowered/api/proxy/Player.java @@ -281,5 +281,5 @@ public interface Player extends CommandSource, Identified, InboundConnection, * * @return the player's client brand */ - Optional getClientBrand(); + @Nullable String getClientBrand(); } diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index 387b721da..73c9514e3 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -873,8 +873,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { } @Override - public Optional getClientBrand() { - return Optional.ofNullable(clientBrand); + public String getClientBrand() { + return clientBrand; } void setClientBrand(String clientBrand) {