Skip to content

Commit

Permalink
Fix pay command always sending 0.
Browse files Browse the repository at this point in the history
Closes #197
Closes #193
  • Loading branch information
Brendan Grieve committed Sep 21, 2019
1 parent 5650641 commit 10705c8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
return true;
}
} else if ( args.length == 3 && "pay".equals(command)) {
try {
value = Double.parseDouble(args[1]);
} catch (NumberFormatException ignored) {
return false;
}

// money pay <amount> <player>
return pay(player, value, args);
}
Expand Down

0 comments on commit 10705c8

Please sign in to comment.