Skip to content

Commit 11ac28c

Browse files
committed
Fixed publicness
Updated version
1 parent dfefc9f commit 11ac28c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

LanguageManagerPlugin.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace LanguageManagerPlugin;
1212

13-
class LanguageManagerPlugin : BasePlugin
13+
public class LanguageManagerPlugin : BasePlugin
1414
{
1515
public override string ModuleAuthor => "aproxje";
1616
public override string ModuleName => "Language Manager Plugin";
@@ -65,7 +65,7 @@ public void OnClientPutInServerHandler(int slot)
6565

6666
var isoFromGeoLocation = GetPlayerISOCode(playerIP);
6767

68-
if (isoFromGeoLocation == null) return;
68+
if (isoFromGeoLocation == null) return;
6969
SetPlayerLanguage(isoFromGeoLocation, player.SteamID, true);
7070
});
7171

@@ -76,7 +76,7 @@ public void SetPlayerLanguage(string playerISOCode, ulong steamID, bool updateDa
7676
CultureInfo tempCulture = new CultureInfo(playerISOCode);
7777
SteamID playerSteamId = new SteamID(steamID);
7878
this.playerLanguageManager.SetLanguage(playerSteamId, tempCulture);
79-
if (updateDatabase ) { this.SavePlayerISOInDatabase(steamID, tempCulture.Name); }
79+
if (updateDatabase) { this.SavePlayerISOInDatabase(steamID, tempCulture.Name); }
8080
}
8181

8282
public async Task<string?> GetPlayerISOFromDatabase(ulong steamID)

LanguageManagerPlugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.126" />
10+
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.194" />
1111
<PackageReference Include="Dapper" Version="2.1.24" />
1212
<PackageReference Include="MaxMind.GeoIP2" Version="5.2.0" />
1313
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.0" />

0 commit comments

Comments
 (0)