From 39d39e58bd0cdd1d42425acc646b645aa02994e5 Mon Sep 17 00:00:00 2001 From: lexikiq Date: Fri, 11 Jun 2021 22:06:37 -0400 Subject: [PATCH] Remove ComponentLike interface from Player --- api/src/main/java/com/velocitypowered/api/proxy/Player.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 f96807eed..611c25b3b 100644 --- a/api/src/main/java/com/velocitypowered/api/proxy/Player.java +++ b/api/src/main/java/com/velocitypowered/api/proxy/Player.java @@ -30,7 +30,6 @@ import net.kyori.adventure.key.Key; import net.kyori.adventure.key.Keyed; import net.kyori.adventure.pointer.Pointers; import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.ComponentLike; import net.kyori.adventure.text.event.ClickEvent; import net.kyori.adventure.text.event.HoverEvent; import net.kyori.adventure.text.event.HoverEventSource; @@ -41,8 +40,7 @@ import org.jetbrains.annotations.NotNull; * Represents a player who is connected to the proxy. */ public interface Player extends CommandSource, Identified, InboundConnection, - ChannelMessageSource, ChannelMessageSink, HoverEventSource, - ComponentLike, Keyed { + ChannelMessageSource, ChannelMessageSink, HoverEventSource, Keyed { /** * Returns the player's current username. @@ -300,7 +298,6 @@ public interface Player extends CommandSource, Identified, InboundConnection, return Key.key("player"); } - @Override default @NotNull Component asComponent() { return Component.text(getUsername()).hoverEvent(this) .clickEvent(ClickEvent.suggestCommand("/tell " + getUsername()))