From 1cc289c11eb7221b1cbc0a124435173178e832a1 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 9 Oct 2021 12:57:53 +0200 Subject: [PATCH] Fix Bot Signed-off-by: Chaoscaot --- src/de/steamwar/bungeecore/bot/events/EventManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/bot/events/EventManager.java b/src/de/steamwar/bungeecore/bot/events/EventManager.java index 398f05d..79ef2e3 100644 --- a/src/de/steamwar/bungeecore/bot/events/EventManager.java +++ b/src/de/steamwar/bungeecore/bot/events/EventManager.java @@ -93,7 +93,7 @@ public class EventManager { MessageBuilder messageBuilder = new MessageBuilder(); messageBuilder.setEmbeds(embedBuilder.build()); - if(!events.isEmpty()) { + if(events.stream().anyMatch(event -> event.getDeadline().after(Timestamp.from(Instant.now())))) { messageBuilder.setActionRows(ActionRow.of(menuBuilder.build())); } if (message == null) {