Skip to content

Commit

Permalink
Fix unable to get kit without a Economy plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFFoZ authored Jul 4, 2021
1 parent b64698c commit 0d34d75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Kits/API/Kit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ public virtual async Task GiveKitToPlayer(IPlayerUser playerUser, IServiceProvid
}
}

await economyProvider.UpdateBalanceAsync(playerUser.Id, playerUser.Type, Money,
if (Money != 0)
{
await economyProvider.UpdateBalanceAsync(playerUser.Id, playerUser.Type, Money,
stringLocalizer["commands:kit:balanceUpdateReason:got"]);
}
}
}
}
}

0 comments on commit 0d34d75

Please # to comment.