From c6235ded6ed8e40a97d100050d72c0860fde3109 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 3 Dec 2022 11:39:29 +0100 Subject: [PATCH] Hotfix CalendarCommand --- CommonCore | 2 +- src/de/steamwar/bungeecore/commands/CalendarCommand.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CommonCore b/CommonCore index 0c68dfd..746ae70 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit 0c68dfd19dc32a848be2cf399e00bc2863739b57 +Subproject commit 746ae701d8abf1534de14b57ae650ac76e9c4d9d diff --git a/src/de/steamwar/bungeecore/commands/CalendarCommand.java b/src/de/steamwar/bungeecore/commands/CalendarCommand.java index 45bf05b..488ae1b 100644 --- a/src/de/steamwar/bungeecore/commands/CalendarCommand.java +++ b/src/de/steamwar/bungeecore/commands/CalendarCommand.java @@ -92,6 +92,7 @@ public class CalendarCommand extends SWCommand { if (b) return; if (month != Month.DECEMBER) return; if (present.getKey() != day) return; + if (NodeMember.getNodeMember(present.getValue(), user.getId()) != null) return; NodeMember.createNodeMember(present.getValue(), user.getId()); Message.send("ADVENT_CALENDAR_OPEN", player, SchematicNode.getSchematicNode(present.getValue()).getName()); });