SteamWar/MissileWars
Archiviert
13
0

Merge pull request 'Fix ChatListener' (#33) from FixTeamMessage into master

Reviewed-on: #33
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
YoyoNow 2021-03-13 12:15:56 +01:00
Commit 140b8f65ad

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; String teamMessage = "§8[" + team.getColorCode() + "TEAM§8] " + message.substring(1);
team.getPlayers().forEach(player -> player.sendMessage(teamMessage)); team.getPlayers().forEach(player -> player.sendMessage(teamMessage));
} else { } else {
Bukkit.broadcastMessage(message); Bukkit.broadcastMessage(message);