From 36678fd2d02d5de0f77787a7be9730736688c538 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 26 Feb 2022 22:50:03 +0100 Subject: [PATCH] Fixes the index of the cost argument in the add command --- src/main/java/net/knarcraft/paidsigns/command/AddCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/paidsigns/command/AddCommand.java b/src/main/java/net/knarcraft/paidsigns/command/AddCommand.java index 20f396f..8ebeddb 100644 --- a/src/main/java/net/knarcraft/paidsigns/command/AddCommand.java +++ b/src/main/java/net/knarcraft/paidsigns/command/AddCommand.java @@ -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;