fixed timing

This commit is contained in:
2025-06-24 21:22:44 +02:00
parent 10be75797a
commit e0ce3351dc

View File

@ -128,7 +128,7 @@ public class Lobby extends InstanceContainer {
LocalTime now = LocalTime.now(ZoneId.of("Europe/Berlin")); LocalTime now = LocalTime.now(ZoneId.of("Europe/Berlin"));
LocalTime start = LocalTime.of(17, 0); // TODO 17 uhr LocalTime start = LocalTime.of(17, 0); // TODO 17 uhr
LocalTime end = LocalTime.of(21, 50); // TODO 21 uhr LocalTime end = LocalTime.of(21, 0); // TODO 21 uhr
if (now.isBefore(start) || now.isAfter(end)) { if (now.isBefore(start) || now.isAfter(end)) {
event.getPlayer().sendActionBar(Component.text("Der Beitritt ist nur zwischen 17 und 21 Uhr möglich.", NamedTextColor.RED)); event.getPlayer().sendActionBar(Component.text("Der Beitritt ist nur zwischen 17 und 21 Uhr möglich.", NamedTextColor.RED));