SteamWar/BungeeCore
Archiviert
13
2

@Player Highlighting Ignore Case #103

Manuell gemergt
YoyoNow hat 5 Commits von at-player nach master 2020-08-30 13:22:23 +02:00 zusammengeführt
Nur Änderungen aus Commit e07b7362d5 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -163,7 +163,7 @@ public class ChatListener extends BasicListener {
for(ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){
Subserver targetServer = Subserver.getSubserver(target);
if(targetServer == null || targetServer.getType() != Servertype.ARENA || targetServer.getServer() != target.getServer().getInfo()){
if(msg.contains("@" + target.getName())) {
if(msg.toLowerCase().contains("@" + target.getName().toLowerCase())) {
BungeeCore.send(target, ChatMessageType.CHAT, msg.replace("@" + target.getName(), "§e@" + target.getName() + chatcolor));
}else {
BungeeCore.send(target, ChatMessageType.CHAT, msg);
@ -208,7 +208,7 @@ public class ChatListener extends BasicListener {
else
last = "";
for(ProxiedPlayer player : ProxyServer.getInstance().getPlayers()){
String name = player.getName();
String name = player.getName().replace("@", "");
if(last.isEmpty() || name.startsWith(last)){
suggestions.add(name);
}
@ -221,6 +221,7 @@ public class ChatListener extends BasicListener {
}
}
}
}
@EventHandler