Fixed Money Spam if Amount is 0

This commit is contained in:
Driftay
2020-03-26 01:11:57 -04:00
parent 66ad927b2f
commit cd24b053dc
6 changed files with 27 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ public class CmdMoneyTransferFf extends FCommand {
@Override
public void perform(CommandContext context) {
double amount = context.argAsDouble(0, 0d);
if(amount <= 0){
return;
}
EconomyParticipator from = context.argAsFaction(1);
if (from == null) {
return;