SteamWar/FightSystem
Archiviert
13
1
Dieser Commit ist enthalten in:
Chaoscaot 2021-04-01 00:19:47 +02:00
Ursprung 29e9a56f1f
Commit ed5081d323

Datei anzeigen

@ -42,8 +42,7 @@ import org.bukkit.Bukkit;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import java.time.Instant; import java.time.LocalDate;
import java.time.temporal.ChronoField;
import java.util.logging.Level; import java.util.logging.Level;
public class FightSystem extends JavaPlugin { public class FightSystem extends JavaPlugin {
@ -147,7 +146,8 @@ public class FightSystem extends JavaPlugin {
Fight.getBlueTeam().setSchem(Schematic.getSchemFromDB(Config.PrepareSchemID)); 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 @Override