Skip to content

Commit f56d01d

Browse files
authored
Merge pull request #5 from imi-tat0r/update-cssharp
Updated CSSharp to v276
2 parents f15ed43 + 800ed74 commit f56d01d

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

CSSharpUtils/CSSharpUtils.csproj

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

1414
<ItemGroup>
15-
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.253" />
15+
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.276" />
1616
</ItemGroup>
1717

1818
</Project>

CSSharpUtils/Extensions/BasePluginExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public static class BasePluginExtensions
77
private static BasePlugin Instance { get; set; } = null!;
88
public static BasePlugin PluginInstance => Instance ?? throw new Exception("BasePlugin instance is not initialized!. this.InitializeUtils() must be called in your plugin's Load() function.");
99

10+
[Obsolete("InitializeUtils is deprecated as it is no longer needed. This method will be removed in a future update.", false)]
1011
public static void InitializeUtils(this BasePlugin instance)
1112
{
1213
Instance = instance;

CSSharpUtils/Extensions/PlayerControllerExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public static void SetName(this CCSPlayerController? playerController, string na
7575
/// <param name="playerController">The player controller to set the clantag for.</param>
7676
/// <param name="clantag">The new clan tag for the player.</param>
7777
/// <remarks>
78-
/// Requires <see cref="BasePluginExtensions.InitializeUtils"/> to be called in the OnPluginLoad method.
7978
/// </remarks>
8079
public static void SetClantag(this CCSPlayerController? playerController, string clantag = "")
8180
{

README.MD

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ CSSharpUtils is an extension library for CounterStrikeSharp that simplifies play
1717
## Examples
1818

1919
### Config
20-
```csharp
21-
using CSSharpUtils.Extensions;
22-
23-
public override void Load(bool hotReload)
24-
{
25-
// initialize the utils (needed for access to timers)
26-
this.InitializeUtils();
27-
}
28-
```
2920

3021
```csharp
3122
using CSSharpUtils.Extensions;

0 commit comments

Comments
 (0)