Skip to content

Commit

Permalink
fix(SetBalance): change minimum from one to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldogedev committed Oct 17, 2023
1 parent 8fd0a8e commit dc92fe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function onRun(CommandSender $sender, string $aliasUsed, array $args): vo
return;
}

if ($amount <= 0) {
if ($amount < 0) {
$sender->sendMessage(LanguageManager::getTranslation(KnownMessages::ERROR_AMOUNT_SMALL));
return;
}
Expand Down

0 comments on commit dc92fe9

Please sign in to comment.