Suggest /team info SW when clicking the SW prefix

This commit is contained in:
2026-10-18 20:01:19 +02:00
parent 2111d72387
commit 12dd46176b
@@ -61,7 +61,10 @@ public class ChatFormat {
Component teamPrefix = Component.empty(); Component teamPrefix = Component.empty();
if (TEAM_PREFIX_FORMATS.contains(format)) { if (TEAM_PREFIX_FORMATS.contains(format)) {
if (useSwPrefix(user)) { 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) { } else if (user.getTeam() != 0) {
Team team = Team.byId(user.getTeam()); Team team = Team.byId(user.getTeam());
teamPrefix = clickableTeam(receiver, team, Chatter.SERIALIZER.deserialize("§" + team.getTeamColor() + team.getTeamKuerzel())).append(Component.text(" ")); teamPrefix = clickableTeam(receiver, team, Chatter.SERIALIZER.deserialize("§" + team.getTeamColor() + team.getTeamKuerzel())).append(Component.text(" "));