SteamWar/BungeeCore
Archiviert
13
2

Hotfix arena chat

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-07-04 18:10:30 +02:00
Ursprung 0a235e64ed
Commit 61c2a7f3a6

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 || targetServer.getServer() != sender.getServer().getInfo()){ if(targetServer == null || targetServer.getType() != Servertype.ARENA || targetServer.getServer() != target.getServer().getInfo()){
BungeeCore.send(target, ChatMessageType.CHAT, msg); BungeeCore.send(target, ChatMessageType.CHAT, msg);
} }
} }