Remove vouchers limit

pull/26/head
maru 7 months ago
parent b113ffceee
commit 0526c7a0f1
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -42,13 +42,6 @@ func Update(uuid []byte, slot int, save any) error {
return fmt.Errorf("client version out of date")
}
if save.VoucherCounts["0"] > 300 ||
save.VoucherCounts["1"] > 150 ||
save.VoucherCounts["2"] > 100 ||
save.VoucherCounts["3"] > 10 {
db.SetAccountBanned(uuid, true)
}
err = db.UpdateAccountStats(uuid, save.GameStats, save.VoucherCounts)
if err != nil {
return fmt.Errorf("failed to update account stats: %s", err)

Loading…
Cancel
Save