12
1
Dieser Commit ist enthalten in:
Chaoscaot 2021-04-01 00:08:26 +02:00
Ursprung 4856fe2380
Commit bdac557390

Datei anzeigen

@ -42,6 +42,8 @@ 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.util.Date;
import java.util.logging.Level;
@ -146,7 +148,7 @@ public class FightSystem extends JavaPlugin {
Fight.getBlueTeam().setSchem(Schematic.getSchemFromDB(Config.PrepareSchemID));
}
ISAPRIL = new Date().getDay() == 1 && new Date().getMonth() == 4;
ISAPRIL = Instant.now().get(ChronoField.DAY_OF_MONTH) == 1 && Instant.now().get(ChronoField.MONTH_OF_YEAR) == 4;
}
@Override