Fixing Aprilö
Dieser Commit ist enthalten in:
Ursprung
4856fe2380
Commit
bdac557390
@ -42,6 +42,8 @@ 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.temporal.ChronoField;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
@ -146,7 +148,7 @@ public class FightSystem extends JavaPlugin {
|
|||||||
Fight.getBlueTeam().setSchem(Schematic.getSchemFromDB(Config.PrepareSchemID));
|
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
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren