Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
pandathebeasty committed Aug 29, 2024
1 parent 475fb1d commit ad77a8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions GoldMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ public class GoldMemberConfig: BasePluginConfig
public override int Version { get; set; } = 12;
}

[MinimumApiVersion(236)]
[MinimumApiVersion(260)]
public class GoldMember : BasePlugin, IPluginConfig<GoldMemberConfig>
{
public override string ModuleName => "Gold Member";
public override string ModuleVersion => "0.1.3";
public override string ModuleVersion => "0.1.4";
public override string ModuleAuthor => "panda.";
public override string ModuleDescription => "Benefits for those who have DNS in name (https://github.com/pandathebeasty/cs2_goldmember)";
public GoldMemberConfig Config { get; set; } = new GoldMemberConfig();
Expand Down Expand Up @@ -142,12 +142,12 @@ public string ReplaceColorPlaceholders(string message)

public override void OnAllPluginsLoaded(bool hotReload)
{
RegisterEventHandler<EventPlayerConnectFull>(OnPlayerConnectFull);
RegisterEventHandler<EventPlayerConnect>(OnPlayerConnect);
RegisterEventHandler<EventPlayerSpawn>(OnPlayerSpawn);

if (Config.DebugLogs == true)
{
Logger.LogInformation("\u001b[1;32mEvent \u001b[1;33m~OnPlayerConnectFull~ \u001b[1;32mregistered!");
Logger.LogInformation("\u001b[1;32mEvent \u001b[1;33m~OnPlayerConnect~ \u001b[1;32mregistered!");
Logger.LogInformation("\u001b[1;32mEvent \u001b[1;33m~OnPlayerSpawn~ \u001b[1;32mregistered!");
}

Expand Down Expand Up @@ -273,13 +273,13 @@ public HookResult RestrictCommands(CCSPlayerController? player, string command)
return HookResult.Continue;
}

public HookResult OnPlayerConnectFull(EventPlayerConnectFull @event, GameEventInfo info)
public HookResult OnPlayerConnect(EventPlayerConnect @event, GameEventInfo info)
{
CCSPlayerController? player = @event.Userid;
if (player == null || player.IsBot || player.IsHLTV || !player.IsValid) return HookResult.Continue;

if (player.IsValid)
AddTimer(Config.AdsTimer, PrintAds, TimerFlags.REPEAT);
AddTimer(Config.AdsTimer, PrintAds);

return HookResult.Continue;
}
Expand Down
2 changes: 1 addition & 1 deletion GoldMember.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.253" />
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.260" />

<Reference Include="VipCoreApi">
<HintPath>VipCoreApi.dll</HintPath>
Expand Down

0 comments on commit ad77a8d

Please sign in to comment.