Browse Source

realm run blessing restricted between 6 pm and 10 pm

birdbane
FatBoy-DOTC 8 months ago
parent
commit
00eceaaa7c
  1. 5
      src/engine/net/client/handlers/MerchantMsgHandler.java

5
src/engine/net/client/handlers/MerchantMsgHandler.java

@ -15,6 +15,7 @@ import engine.net.client.msg.*; @@ -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 { @@ -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;

Loading…
Cancel
Save