Finally finished first wave of bugfixing #35

Merged
alisolarflare merged 11 commits from Bugfix into master 2016-12-19 03:19:49 +00:00
Showing only changes of commit 4ee38f92cf - Show all commits

View file

@ -34,6 +34,10 @@ public class getInsurance extends ModCommand {
// <amount> <type> argument // <amount> <type> argument
if (StringUtils.isNumeric(args[0]) && Insurance.isInsuranceType(args[1])){ if (StringUtils.isNumeric(args[0]) && Insurance.isInsuranceType(args[1])){
amount = Integer.parseInt(args[0]); amount = Integer.parseInt(args[0]);
insuranceType = InsuranceType.valueOf(args[1]);
break;
}else if (StringUtils.isNumeric(args[1]) && Insurance.isInsuranceType(args[0])){
amount = Integer.parseInt(args[1]);
insuranceType = InsuranceType.valueOf(args[0]); insuranceType = InsuranceType.valueOf(args[0]);
break; break;
}else{ }else{