From 12dd46176b027564a2961566587201ec9e7ab179 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 18 Oct 2026 19:59:40 +0200 Subject: [PATCH] Suggest /team info SW when clicking the SW prefix --- .../src/de/steamwar/velocitycore/chat/ChatFormat.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java b/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java index 91e5feda..28b4a725 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java +++ b/VelocityCore/src/de/steamwar/velocitycore/chat/ChatFormat.java @@ -61,7 +61,10 @@ public class ChatFormat { Component teamPrefix = Component.empty(); if (TEAM_PREFIX_FORMATS.contains(format)) { if (useSwPrefix(user)) { - teamPrefix = withTeamHover(receiver, user, Chatter.SERIALIZER.deserialize("§eS§8W")).append(Component.text(" ")); + teamPrefix = Chatter.SERIALIZER.deserialize("§eS§8W") + .hoverEvent(HoverEvent.showText(receiver.parse(new Message("CHAT_HOVER_TEAM_CLICK", "SteamWar", "§e", "S§8W")))) + .clickEvent(ClickEvent.suggestCommand("/team info SW")) + .append(Component.text(" ")); } else if (user.getTeam() != 0) { Team team = Team.byId(user.getTeam()); teamPrefix = clickableTeam(receiver, team, Chatter.SERIALIZER.deserialize("§" + team.getTeamColor() + team.getTeamKuerzel())).append(Component.text(" "));