forked from MagicBane/Server
realm run blessing restricted between 6 pm and 10 pm
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user