forked from MagicBane/Server
commented ready for 5 man weekends
This commit is contained in:
@@ -18,6 +18,7 @@ import engine.math.Vector3fImmutable;
|
|||||||
import engine.net.ByteBufferWriter;
|
import engine.net.ByteBufferWriter;
|
||||||
import engine.net.client.msg.ErrorPopupMsg;
|
import engine.net.client.msg.ErrorPopupMsg;
|
||||||
import engine.server.MBServerStatics;
|
import engine.server.MBServerStatics;
|
||||||
|
import org.joda.time.DateTime;
|
||||||
import org.pmw.tinylog.Logger;
|
import org.pmw.tinylog.Logger;
|
||||||
|
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
@@ -129,6 +130,20 @@ public class Mine extends AbstractGameObject {
|
|||||||
this.openHour = rs.getInt("mineLiveHour");
|
this.openHour = rs.getInt("mineLiveHour");
|
||||||
this.openMinute = rs.getInt("mineLiveMinute");
|
this.openMinute = rs.getInt("mineLiveMinute");
|
||||||
this.capSize = rs.getInt("capSize");
|
this.capSize = rs.getInt("capSize");
|
||||||
|
|
||||||
|
//uncomment this for weekend 5s in lieu of 3s
|
||||||
|
//int loggedCapSize = rs.getInt("capSize");
|
||||||
|
//if(loggedCapSize == 3){
|
||||||
|
// int dayOfWeek = DateTime.now().dayOfWeek().get();
|
||||||
|
// if(dayOfWeek == 7 || dayOfWeek == 6 || dayOfWeek == 5){
|
||||||
|
// this.capSize = 5;
|
||||||
|
// }else{
|
||||||
|
// this.capSize = loggedCapSize;
|
||||||
|
// }
|
||||||
|
//}else{
|
||||||
|
// this.capSize = loggedCapSize;
|
||||||
|
//}
|
||||||
|
|
||||||
this.liveTime = LocalDateTime.now().withHour(this.openHour).withMinute(this.openMinute);
|
this.liveTime = LocalDateTime.now().withHour(this.openHour).withMinute(this.openMinute);
|
||||||
Building tower = BuildingManager.getBuildingFromCache(this.buildingID);
|
Building tower = BuildingManager.getBuildingFromCache(this.buildingID);
|
||||||
if(tower != null){
|
if(tower != null){
|
||||||
|
|||||||
Reference in New Issue
Block a user