From 253a975c73103549d59e5a6f3cba729589f82d01 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 18 Oct 2026 20:01:09 +0200 Subject: [PATCH] Show no player hover for players of the public team --- VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java b/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java index 28b4a725..1921bec8 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java +++ b/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java @@ -113,10 +113,11 @@ public class ChatFormat { * Shows the team of the user when hovering the component, the SteamWar team for server team members using the SW prefix. */ public static Component withTeamHover(Chatter receiver, SteamwarUser user, Component component) { + // Players of the public team (id 0) get no hover + if (user.getTeam() == 0) return component; if (useSwPrefix(user)) { return component.hoverEvent(HoverEvent.showText(receiver.parse(new Message("CHAT_HOVER_TEAM", "SteamWar", "§e", "S§8W")))); } - if (user.getTeam() == 0) return component; return component.hoverEvent(HoverEvent.showText(teamHover(receiver, Team.byId(user.getTeam())))); }