Skip to content

Commit e69bd8c

Browse files
committed
final commit for 3.2.1
1 parent 945d83e commit e69bd8c

8 files changed

Lines changed: 153 additions & 205 deletions

File tree

Config.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public class Config : IConfig
5656
#region Custom Items setup
5757

5858
public Coin Coin { get; set; } = new();
59-
public Scp1162 Scp1162 { get; set; } = new();
6059
public Scp1499 Scp1499 { get; set; } = new();
6160
public GrenadeLauncher GrenadeLauncher { get; set; } = new();
6261
public Sniper Sniper { get; set; } = new();

Items/AdminAbuse.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ private void OnChangingAttachments(ChangingAttachmentsEventArgs ev)
5252
{
5353
if (!Check(ev.Item) || ev.Player.NetId < 2) return;
5454

55+
Log.Debug($"Player {ev.Player.Nickname} tried to change attachments for {Name}");
5556
ev.IsAllowed = false;
5657
ev.Player.ShowHint("You are not allowed to change the attachment for this weapon.");
5758
}

Items/GrenadeLauncher.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ protected override void UnsubscribeEvents()
9292

9393
private void OnChangingAttachments(ChangingAttachmentsEventArgs ev)
9494
{
95-
if (!Check(ev.Item) || ev.Player.NetId < 2) { ev.IsAllowed = false; return; }
95+
if (!Check(ev.Item) || ev.Player.NetId < 2) return;
9696

97+
Log.Debug($"Player {ev.Player.Nickname} tried to change attachments for {Name}");
9798
ev.Player.Broadcast(5, "You can't change the attachments on this weapon");
9899
ev.IsAllowed = false;
99100
}

Items/Scp1162.cs

Lines changed: 0 additions & 192 deletions
This file was deleted.

Items/Sniper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Exiled.API.Enums;
2+
using Exiled.API.Features;
23
using Exiled.API.Features.Attributes;
34
using Exiled.API.Features.Spawn;
45
using Exiled.CustomItems.API.Features;
@@ -20,7 +21,6 @@ public class Sniper : CustomWeapon
2021
public override float Damage { get; set; } = 112f;
2122
public override byte ClipSize { get; set; } = 1;
2223

23-
[YamlIgnore]
2424
public override AttachmentName[] Attachments { get; set; } =
2525
[
2626
AttachmentName.LowcapMagAP, AttachmentName.Foregrip, AttachmentName.DotSight, AttachmentName.RecoilReducingStock, AttachmentName.CarbineBody, AttachmentName.MuzzleBrake
@@ -59,6 +59,7 @@ private void OnChangingAttachments(ChangingAttachmentsEventArgs ev)
5959
{
6060
if (!Check(ev.Item) || ev.Player.NetId < 2) return;
6161

62+
Log.Debug($"Player {ev.Player.Nickname} tried to change attachments for {Name}");
6263
ev.IsAllowed = false;
6364
ev.Player.ShowHint("You are not allowed to change the attachment for this weapon.");
6465
}

Plugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class Plugin : Plugin<Config>
88
public override string Prefix => "Cactus Patch";
99
public override string Name => "Extended Items";
1010
public override string Author => "Noobest1001";
11-
public override Version Version => new(3, 0, 1);
11+
public override Version Version => new(3, 2, 1);
1212
public override Version RequiredExiledVersion => new(9, 6, 0);
1313
public static Plugin? Instance;
1414

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Currently, there are 6 items available:
77

88
- Coin
99
- Gives player effect bonuses if lands on heads, ~~**_[redacted]_**~~ if on tails.
10-
- SCP-1162
11-
- Spawns in Lcz173, hold an item and interact to trade for another.
1210
- SCP-1499
1311
- A gas mask that temporarily teleports you to a location.
1412
- Sniper

0 commit comments

Comments
 (0)