This logic could be extrapolated to another method to make it easier to read.
Config.enableStrPot && (!S.inventory.contains("Strength potion(4)") || (S.getInventory().getAmount("Strength potion(4)") < Config.strAmt))
shouldWithdrawItem(boolean enabled, String itemName, int amount)
if (test.length > 0){
return test[0];
}
else return null;
return test.length > 0 ? test[0]] : null;
final Set<Entry<String, Integer>> values = neededItems.entrySet();
final int maplength = values.size();
final Entry<String, Integer>[] test = new Entry[maplength];
Looks pretty ugly ngl.