protected PlanPlan(JSONObject object, Object array, int length) throws JSONException, FatalError {
		super("Plan");
		
		if (array != null && array instanceof JSONArray) {
			JSONArray arr = (JSONArray) array;
			manager = new PlanManager(arr.length());
			
			for (int i = 0; i < arr.length(); i++) {
				manager.add(PlanObject.get(arr.getJSONObject(i)));
			}
			
			manager.setLoop(length);
			
		} else {
			configError();
		}
		
	}