From ed5081d3230d827b5098aa36445fba2e0fd12fe2 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 1 Apr 2021 00:19:47 +0200 Subject: [PATCH] =?UTF-8?q?Final=20F=C3=B6x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/de/steamwar/fightsystem/FightSystem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java b/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java index c64fbf7..1d10a14 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java @@ -42,8 +42,7 @@ import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; -import java.time.Instant; -import java.time.temporal.ChronoField; +import java.time.LocalDate; import java.util.logging.Level; public class FightSystem extends JavaPlugin { @@ -147,7 +146,8 @@ public class FightSystem extends JavaPlugin { Fight.getBlueTeam().setSchem(Schematic.getSchemFromDB(Config.PrepareSchemID)); } - ISAPRIL = Instant.now().get(ChronoField.DAY_OF_MONTH) == 1 && Instant.now().get(ChronoField.MONTH_OF_YEAR) == 4; + LocalDate date = LocalDate.now(); + ISAPRIL = date.getDayOfMonth() == 1 && date.getMonthValue() == 4; } @Override