From 00eceaaa7c31287e9f52236364590728e1eed528 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 24 Mar 2024 20:58:51 -0500 Subject: [PATCH] realm run blessing restricted between 6 pm and 10 pm --- src/engine/net/client/handlers/MerchantMsgHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/net/client/handlers/MerchantMsgHandler.java b/src/engine/net/client/handlers/MerchantMsgHandler.java index 94490a72..1368d505 100644 --- a/src/engine/net/client/handlers/MerchantMsgHandler.java +++ b/src/engine/net/client/handlers/MerchantMsgHandler.java @@ -15,6 +15,7 @@ import engine.net.client.msg.*; import engine.objects.*; import engine.powers.PowersBase; import engine.server.MBServerStatics; +import org.joda.time.DateTime; import java.util.ArrayList; @@ -98,6 +99,10 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler { private static void requestHermitBlessing(MerchantMsg msg, ClientConnection origin, PlayerCharacter player, NPC npc) { + + if(DateTime.now().getHourOfDay() < 18 || DateTime.now().getHourOfDay() > 21){ + ChatManager.chatSystemInfo(player, "Blessing can only be received between 6:00 pm and 10:00 pm"); + } Guild guild; Realm realm; City city;