From 82717dd9d49d1c5296fc1038e2baf50c45ce9180 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 28 Jul 2020 20:24:41 +0200 Subject: [PATCH] Hotfix repeated announcements Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/listeners/ConnectionListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java index aa08609..d8db35a 100644 --- a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java +++ b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java @@ -98,8 +98,10 @@ public class ConnectionListener extends BasicListener { } } - if(newPlayers.contains(player.getUniqueId())) + if(newPlayers.contains(player.getUniqueId())){ BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + "§7Begrüßt alle mal §e" + player.getName() + " §7auf dem Server§8!"); + newPlayers.remove(player.getUniqueId()); + } } /** To redirect players to the lobby in case of server closure. */