SteamWar/MissileWars
Archiviert
13
0

Hotfix ChatListener for TeamChat

Dieser Commit ist enthalten in:
yoyosource 2021-05-09 11:40:39 +02:00
Ursprung 9b3abd29c8
Commit 4468cf254a

Datei anzeigen

@ -46,7 +46,7 @@ public class ChatListener extends BasicListener {
Bukkit.broadcastMessage(message); Bukkit.broadcastMessage(message);
} else { } else {
if (e.getMessage().startsWith("+")) { if (e.getMessage().startsWith("+")) {
String teamMessage = "§8[" + team.getColorCode() + "TEAM§8] " + message.substring(1); String teamMessage = "§8[" + team.getColorCode() + "TEAM§8] " + e.getPlayer().getDisplayName() + "§8» §7" + e.getMessage().substring(1);
team.getPlayers().forEach(player -> player.sendMessage(teamMessage)); team.getPlayers().forEach(player -> player.sendMessage(teamMessage));
} else { } else {
Bukkit.broadcastMessage(message); Bukkit.broadcastMessage(message);