open hours

This commit is contained in:
2025-06-23 16:41:13 +02:00
parent 81977a78f8
commit 676608ad36

View File

@ -127,8 +127,8 @@ public class Lobby extends InstanceContainer {
if(this.isJoining) return;
LocalTime now = LocalTime.now(ZoneId.of("Europe/Berlin"));
LocalTime start = LocalTime.of(9, 0); // TODO 17 uhr
LocalTime end = LocalTime.of(21, 0); // TODO 21 uhr
LocalTime start = LocalTime.of(17, 0); // TODO 17 uhr
LocalTime end = LocalTime.of(21, 50); // TODO 21 uhr
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));