Fixes the index of the cost argument in the add command

This commit is contained in:
Kristian Knarvik 2022-02-26 22:50:03 +01:00
parent 4e44909f80
commit 36678fd2d0

View File

@ -29,7 +29,7 @@ public class AddCommand extends TokenizedCommand {
String signName = arguments.get(0);
double cost;
try {
cost = Double.parseDouble(arguments.get(2));
cost = Double.parseDouble(arguments.get(1));
} catch (NumberFormatException exception) {
sender.sendMessage("You provided an invalid number");
return false;