Fixed #29 and its friends
This commit is contained in:
parent
7def561103
commit
4ee38f92cf
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ public class getInsurance extends ModCommand {
|
|||
// <amount> <type> argument
|
||||
if (StringUtils.isNumeric(args[0]) && Insurance.isInsuranceType(args[1])){
|
||||
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]);
|
||||
break;
|
||||
}else{
|
||||
|
|
Loading…
Reference in a new issue