@Player Highlighting #102
@ -19,6 +19,7 @@ import net.md_5.bungee.api.event.TabCompleteResponseEvent;
|
||||
import net.md_5.bungee.api.scheduler.TaskScheduler;
|
||||
import net.md_5.bungee.event.EventHandler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@ -159,10 +160,15 @@ public class ChatListener extends BasicListener {
|
||||
if(user.getTeam() != 0){
|
||||
msg = "§8" + Team.get(user.getTeam()).getTeamKuerzel() + " §r" + msg;
|
||||
}
|
||||
|
||||
for(ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){
|
||||
Subserver targetServer = Subserver.getSubserver(target);
|
||||
if(targetServer == null || targetServer.getType() != Servertype.ARENA || targetServer.getServer() != target.getServer().getInfo()){
|
||||
BungeeCore.send(target, ChatMessageType.CHAT, msg);
|
||||
if(msg.contains("@" + target.getName())) {
|
||||
|
||||
BungeeCore.send(target, ChatMessageType.CHAT, msg.replace("@" + target.getName(), "§e@" + target.getName() + "§r"));
|
||||
}else {
|
||||
BungeeCore.send(target, ChatMessageType.CHAT, msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
BungeeCore.log(sender.getServer().getInfo(), msg);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
§r könnte die Farbgebung durcheinander werfen (Admiral schreibt §e und normale Spieler §7)