From 0a235e64ed127d0ab0c99da043357dc23e711ce4 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 4 Jul 2020 08:46:17 +0200 Subject: [PATCH] Fix chat message recieving during arena change Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/listeners/ChatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/ChatListener.java b/src/de/steamwar/bungeecore/listeners/ChatListener.java index c762a984..c94061f6 100644 --- a/src/de/steamwar/bungeecore/listeners/ChatListener.java +++ b/src/de/steamwar/bungeecore/listeners/ChatListener.java @@ -146,7 +146,7 @@ public class ChatListener extends BasicListener { } for(ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){ 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); } }