Skip to content

Commit

Permalink
Removed debug (#2770)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Monaldcry7788 authored Aug 14, 2024
1 parent 31e2f0a commit 3a93db1
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,15 +654,8 @@ protected virtual void PickingUpItemBehavior(SearchingPickupEventArgs ev)
Log.Error("Pickup is null");
}

Log.InfoWithContext($"{ev.Player} is trying to pick up {ev.Pickup.Type}");

if (!Check(ev.Player) || Settings.CanPickupItems)
{
Log.InfoWithContext($"{ev.Player} is not {CustomRole.Name} or can pick up items as {CustomRole.Name}");
return;
}

Log.InfoWithContext($"{ev.Player} cannot pick up items");

ev.IsAllowed = false;
}
Expand Down

0 comments on commit 3a93db1

Please sign in to comment.