public override void Handle(IHasSource <Frostspark.API.Entities.Player> obj)
        {
            //If this is an event we're not supposed to handle, don't handle it.
            if (DontHandle.Contains(obj.GetType()))
            {
                return;
            }

            //Otherwise, if this event is cancellable, cancel it.
            if (obj is ICancellable cancellable)
            {
                cancellable.Cancelled = true;
            }
        }
 public override bool Filter(IHasSource <Frostspark.API.Entities.Player> t)
 {
     return(EventManager.PlayerImmobiliseEventFilter(t.Source));
 }