From 603f3a09bff3e00b72dc29c1c2dc541621859e08 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 3 Mar 2023 18:00:59 +0100 Subject: [PATCH] Fix zero broadcast messages Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/Broadcaster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/Broadcaster.java b/src/de/steamwar/bungeecore/Broadcaster.java index 925625c..3020d01 100644 --- a/src/de/steamwar/bungeecore/Broadcaster.java +++ b/src/de/steamwar/bungeecore/Broadcaster.java @@ -30,7 +30,7 @@ class Broadcaster { Broadcaster(){ ProxyServer.getInstance().getScheduler().schedule(BungeeCore.get(), () -> { - if(!ProxyServer.getInstance().getPlayers().isEmpty()) + if(!ProxyServer.getInstance().getPlayers().isEmpty() && broadCastMsgs.length > 0) BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + broadCastMsgs[lastBroadCast]); lastBroadCast++; if(lastBroadCast == broadCastMsgs.length){