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

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