SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Alle dinge sind Drei' (#243) from adding_billo_april into master

Reviewed-on: #243
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
YoyoNow 2021-04-01 00:22:05 +02:00
Commit 234819cfac

Datei anzeigen

@ -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