return parseInteger(prop, defaultValue);
}
private static int get(String cat, String tag, int min, int defaultValue, int max, String comment) {
comment = COMMENT_PREFIX + comment.replace("{t}", tag) + COMMENT_SUFFIX;
Property prop = configMain.get(cat, tag, defaultValue);
prop.comment = comment;
int parsed = parseInteger(prop, defaultValue);
int clamped = Math.max(parsed, min);
clamped = Math.min(clamped, max);
if (clamped != parsed)
prop.set(clamped);
return clamped;
}