diff --git a/api/src/main/java/be/darkkraft/transferproxy/api/network/connection/PlayerConnection.java b/api/src/main/java/be/darkkraft/transferproxy/api/network/connection/PlayerConnection.java index 397623b..a5a3fe7 100644 --- a/api/src/main/java/be/darkkraft/transferproxy/api/network/connection/PlayerConnection.java +++ b/api/src/main/java/be/darkkraft/transferproxy/api/network/connection/PlayerConnection.java @@ -76,6 +76,8 @@ default void disconnect(final @NotNull String reason) { void setHost(final @NotNull String hostname, final int hostPort); + void setBrand(final @Nullable String brand); + String getName(); UUID getUUID(); @@ -95,6 +97,13 @@ default void disconnect(final @NotNull String reason) { int getHostPort(); + default boolean hasBrand() { + return this.getBrand() != null; + } + + @Nullable + String getBrand(); + boolean isFromTransfer(); } \ No newline at end of file diff --git a/core/src/main/java/be/darkkraft/transferproxy/network/connection/PlayerConnectionImpl.java b/core/src/main/java/be/darkkraft/transferproxy/network/connection/PlayerConnectionImpl.java index d364e07..142f9da 100644 --- a/core/src/main/java/be/darkkraft/transferproxy/network/connection/PlayerConnectionImpl.java +++ b/core/src/main/java/be/darkkraft/transferproxy/network/connection/PlayerConnectionImpl.java @@ -77,6 +77,7 @@ public class PlayerConnectionImpl extends SimpleChannelInboundHandler