Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 3a93db1

Browse files
Removed debug (#2770)
* Fixed Pawn.cs being null if try to use it by Player::Get().Cast<Pawn>(). Adding a method for load a constructor without any param or constructor. Removing abstract from RoleBehaviour.cs for allow the creating of an instance. Added custom role example under Exiled.Example for testing purpose. * Fixed custom roles. * Added test role (testing purposes) * Fixed customroles. Release 9.0.0-beta.1 * removed debug.
1 parent 31e2f0a commit 3a93db1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Exiled.CustomModules/API/Features/CustomRoles/RoleBehaviour.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -654,15 +654,8 @@ protected virtual void PickingUpItemBehavior(SearchingPickupEventArgs ev)
654654
Log.Error("Pickup is null");
655655
}
656656

657-
Log.InfoWithContext($"{ev.Player} is trying to pick up {ev.Pickup.Type}");
658-
659657
if (!Check(ev.Player) || Settings.CanPickupItems)
660-
{
661-
Log.InfoWithContext($"{ev.Player} is not {CustomRole.Name} or can pick up items as {CustomRole.Name}");
662658
return;
663-
}
664-
665-
Log.InfoWithContext($"{ev.Player} cannot pick up items");
666659

667660
ev.IsAllowed = false;
668661
}

0 commit comments

Comments
 (0)