Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
fix: Error log if rank module disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Feb 8, 2024
1 parent 04688f1 commit f7bf235
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Plugin/PluginStock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ LEFT JOIN

var parameters = new MySqlParameter[]
{
new MySqlParameter("@escapedName", player.PlayerName),
new MySqlParameter("@steamid", player.SteamID),
new MySqlParameter("@noneRankName", ModuleRank.GetNoneRank().Name),
new MySqlParameter("@startPoints", Config.RankSettings.StartPoints)
new MySqlParameter("@escapedName", player.PlayerName),
new MySqlParameter("@steamid", player.SteamID),
new MySqlParameter("@noneRankName", ModuleRank.GetNoneRank()?.Name ?? "none"),
new MySqlParameter("@startPoints", Config.RankSettings.StartPoints)
};

Task.Run(async () =>
Expand Down

0 comments on commit f7bf235

Please sign in to comment.