From 05589e2d6ec978b053c91498c7af92fdeeaf8087 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 12 Mar 2021 17:21:52 +0100 Subject: [PATCH] Fix ChatListener --- src/de/steamwar/misslewars/listener/ChatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/misslewars/listener/ChatListener.java b/src/de/steamwar/misslewars/listener/ChatListener.java index 8df3095..b897578 100644 --- a/src/de/steamwar/misslewars/listener/ChatListener.java +++ b/src/de/steamwar/misslewars/listener/ChatListener.java @@ -46,7 +46,7 @@ public class ChatListener extends BasicListener { Bukkit.broadcastMessage(message); } else { if (e.getMessage().startsWith("+")) { - String teamMessage = "§8[" + team.getColorCode() + "TEAM§8] " + message; + String teamMessage = "§8[" + team.getColorCode() + "TEAM§8] " + message.substring(1); team.getPlayers().forEach(player -> player.sendMessage(teamMessage)); } else { Bukkit.broadcastMessage(message);