Fixes the index of the cost argument in the add command
This commit is contained in:
		| @@ -29,7 +29,7 @@ public class AddCommand extends TokenizedCommand { | |||||||
|         String signName = arguments.get(0); |         String signName = arguments.get(0); | ||||||
|         double cost; |         double cost; | ||||||
|         try { |         try { | ||||||
|             cost = Double.parseDouble(arguments.get(2)); |             cost = Double.parseDouble(arguments.get(1)); | ||||||
|         } catch (NumberFormatException exception) { |         } catch (NumberFormatException exception) { | ||||||
|             sender.sendMessage("You provided an invalid number"); |             sender.sendMessage("You provided an invalid number"); | ||||||
|             return false; |             return false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user