diff --git a/mod/Gangs.BombIconPerk/BombPerk.cs b/mod/Gangs.BombIconPerk/BombPerk.cs index 4da1053b..f78b46ff 100644 --- a/mod/Gangs.BombIconPerk/BombPerk.cs +++ b/mod/Gangs.BombIconPerk/BombPerk.cs @@ -17,7 +17,7 @@ public class BombPerk(IServiceProvider provider) public override string StatId => STAT_ID; public override string Name => "Bomb Icon"; - public override string? Description + public override string Description => "Customize the icon that is shown when you bomb a CT"; public override BombPerkData Value { get; set; } = new(); diff --git a/mod/Gangs.SpecialDayColorPerk/SDColorCommand.cs b/mod/Gangs.SpecialDayColorPerk/SDColorCommand.cs index f6805a1b..618d398b 100644 --- a/mod/Gangs.SpecialDayColorPerk/SDColorCommand.cs +++ b/mod/Gangs.SpecialDayColorPerk/SDColorCommand.cs @@ -13,7 +13,6 @@ using GangsAPI.Services.Player; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; -using Stats.Perk.Smoke; namespace Gangs.SpecialDayColorPerk; diff --git a/mod/Gangs.SpecialDayColorPerk/SDColorMenu.cs b/mod/Gangs.SpecialDayColorPerk/SDColorMenu.cs index f8b799d2..ce5f590a 100644 --- a/mod/Gangs.SpecialDayColorPerk/SDColorMenu.cs +++ b/mod/Gangs.SpecialDayColorPerk/SDColorMenu.cs @@ -1,13 +1,12 @@ using CounterStrikeSharp.API.Modules.Commands; using CounterStrikeSharp.API.Modules.Utils; -using Gangs.SpecialDayColorPerk; using GangsAPI.Data; using GangsAPI.Extensions; using GangsAPI.Menu; using GangsAPI.Services.Commands; using Microsoft.Extensions.DependencyInjection; -namespace Stats.Perk.Smoke; +namespace Gangs.SpecialDayColorPerk; public class SDColorMenu(IServiceProvider provider, SDColorData data) : AbstractPagedMenu(provider, NativeSenders.Chat) { diff --git a/mod/Gangs.SpecialDayColorPerk/SDColorPerk.cs b/mod/Gangs.SpecialDayColorPerk/SDColorPerk.cs index 7d6b56fb..06249b77 100644 --- a/mod/Gangs.SpecialDayColorPerk/SDColorPerk.cs +++ b/mod/Gangs.SpecialDayColorPerk/SDColorPerk.cs @@ -4,7 +4,6 @@ using GangsAPI.Services.Gang; using GangsAPI.Services.Menu; using Microsoft.Extensions.DependencyInjection; -using Stats.Perk.Smoke; namespace Gangs.SpecialDayColorPerk; @@ -18,7 +17,7 @@ public class SDColorPerk(IServiceProvider provider) public override string StatId => STAT_ID; public override string Name => "Special Day Color"; - public override string? Description + public override string Description => "Change the color of your gang during special days!"; public override SDColorData Value { get; set; } = new(); diff --git a/mod/Jailbreak.LastRequest/LastRequests/BulletForBullet.cs b/mod/Jailbreak.LastRequest/LastRequests/BulletForBullet.cs index cdcf0574..da408d0b 100644 --- a/mod/Jailbreak.LastRequest/LastRequests/BulletForBullet.cs +++ b/mod/Jailbreak.LastRequest/LastRequests/BulletForBullet.cs @@ -17,7 +17,6 @@ public class BulletForBullet : TeleportingRequest { private readonly ChatMenu chatMenu; private readonly bool magForMag; private readonly ILRB4BLocale msg; - private string? designerName; private int? whosShot, magSize; public BulletForBullet(BasePlugin plugin, IServiceProvider provider, @@ -109,13 +108,13 @@ private HookResult OnPlayerShoot(EventBulletImpact @event, return HookResult.Handled; } - var bullets = player.GetWeaponBase(designerName!)?.Clip1 ?? 1; + var bullets = player.GetWeaponBase(weaponName)?.Clip1 ?? 1; if (bullets > 1) return HookResult.Continue; Server.NextFrame(() => { var opponent = player.Slot == Prisoner.Slot ? Guard : Prisoner; whosShot = opponent.Slot; - opponent.GetWeaponBase(designerName!)?.SetAmmo(magSize.Value, 0); + opponent.GetWeaponBase(weaponName)?.SetAmmo(magSize.Value, 0); }); return HookResult.Continue; } diff --git a/mod/Jailbreak.RTD/Rewards/CannotLeftKnife.cs b/mod/Jailbreak.RTD/Rewards/CannotLeftKnife.cs index 925fcd29..cc8e7a61 100644 --- a/mod/Jailbreak.RTD/Rewards/CannotLeftKnife.cs +++ b/mod/Jailbreak.RTD/Rewards/CannotLeftKnife.cs @@ -5,8 +5,6 @@ namespace Jailbreak.RTD.Rewards; public class CannotLeftKnife(BasePlugin plugin) : AbstractOnTickReward(plugin) { - private readonly HashSet blockedPlayerIDs = []; - public override string Name => "Cannot Left-Knife"; public override string Description diff --git a/mod/Jailbreak.RTD/Rewards/CannotScope.cs b/mod/Jailbreak.RTD/Rewards/CannotScope.cs index 356a13c7..0f706949 100644 --- a/mod/Jailbreak.RTD/Rewards/CannotScope.cs +++ b/mod/Jailbreak.RTD/Rewards/CannotScope.cs @@ -7,7 +7,7 @@ namespace Jailbreak.RTD.Rewards; public class CannotScope(BasePlugin plugin) : AbstractOnTickReward(plugin) { public override string Name => "Cannot Scope"; - public override string? Description + public override string Description => "You will not be able to scope next round."; override protected void tick(CCSPlayerController player) { diff --git a/mod/Jailbreak.RTD/Rewards/ChatSpyReward.cs b/mod/Jailbreak.RTD/Rewards/ChatSpyReward.cs index ba29f8d9..ec374245 100644 --- a/mod/Jailbreak.RTD/Rewards/ChatSpyReward.cs +++ b/mod/Jailbreak.RTD/Rewards/ChatSpyReward.cs @@ -12,7 +12,7 @@ public ChatSpyReward(BasePlugin plugin) { public string Name => "Chat Spy"; - public string? Description + public string Description => "You will be able to read all team chats next round."; public bool Enabled => API.Actain != null; diff --git a/mod/Jailbreak.Warden/WardenServiceExtension.cs b/mod/Jailbreak.Warden/WardenServiceExtension.cs index 51442958..c2d56694 100644 --- a/mod/Jailbreak.Warden/WardenServiceExtension.cs +++ b/mod/Jailbreak.Warden/WardenServiceExtension.cs @@ -20,6 +20,7 @@ public static void AddJailbreakWarden( .AddPluginBehavior(); serviceCollection .AddPluginBehavior(); + serviceCollection.AddPluginBehavior(); serviceCollection.AddPluginBehavior();