SteamWar/BungeeCore
Archiviert
13
2

Fix chat message recieving during arena change

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-07-04 08:46:17 +02:00
Ursprung 99c1aa1741
Commit 0a235e64ed

Datei anzeigen

@ -146,7 +146,7 @@ public class ChatListener extends BasicListener {
} }
for(ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){ for(ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){
Subserver targetServer = Subserver.getSubserver(target); Subserver targetServer = Subserver.getSubserver(target);
if(targetServer == null || targetServer.getType() != Servertype.ARENA){ if(targetServer == null || targetServer.getType() != Servertype.ARENA || targetServer.getServer() != sender.getServer().getInfo()){
BungeeCore.send(target, ChatMessageType.CHAT, msg); BungeeCore.send(target, ChatMessageType.CHAT, msg);
} }
} }