Skip to content

Commit

Permalink
Merge pull request #206 from bundabrg/fix/pay-bug
Browse files Browse the repository at this point in the history
Fix pay command always sending 0.
  • Loading branch information
bundabrg authored Sep 21, 2019
2 parents ff62fcc + 10705c8 commit 1baaf13
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 1baaf13

Please sign in to comment.