Calling hook CanNetworkTo resulted in a conflictFixed

ERRORS

Calling hook CanNetworkTo resulted in a conflict between the following plugins: Skins - False (Boolean), MapMyDeath (True (Boolean))

&

Calling hook CanNetworkTo resulted in a conflict between the following plugins: NightVision - False (Boolean), MapMyDeath (True (Boolean))


But very nice work :) 

hello ! thank you for your report !
and your encouragement !
As the title says I'm getting an error in my console that says:

Calling hook CanNetworkTo resulted in a conflict between the following plugins: MapMyDeath - True (Boolean), Vanish (False (Boolean))

It typically goes off multiple times in a second, sometimes when I interact with objects, sometimes when I just exist. Almost 30 minutes passed without someone dying in any way on my server and I must have gotten over 50 error messages.

No clue what it would be but thank you in advance,
-King

MapMyDeath should probably be returning null, not true if it isn't trying to stop the action; this is an unnecessary conflict.
#region NETWORK FILTER

        bool CanNetworkTo(BaseNetworkable entity, BasePlayer target)
        {
            if (entity is MapMarkerGenericRadius)
            {
                MapMarkerGenericRadius entitymarker = entity.GetComponent<MapMarkerGenericRadius>();
                if (entitymarker == null || target == null) return true;
                if (MapMarker.ContainsValue(entitymarker))
                {
                    foreach (var deadmarkers in MapMarker)
                    {
                        if (deadmarkers.Value == entitymarker)
                        {
                            if (deadmarkers.Key == target.userID) return true;
                            else return false;
                        }
                    }
                }
            }
            return true;
        }

#endregion


This is where the error would be but I mentally can't wrap my head around how that would be fixed.

Change the return true to return null and change bool to object.
This isn't my source but I'm gonna run it and see if that fixes it so at least it can say it was patched. Thanks wulfy.
In response to Wulf ():
Change the return true to return null and change bool to object.
What object am I returning, you can't just return an "object" as a generic type can you? And what about the remaining booleans? I apologize, java is what I'm good at, c# I'm guessing at based on prior knowledge but I don't know the umod API either unfortunately, which is where is assume CanNetworkTo comes from.
Change “bool CanNetworkTo” to “object CanNetworkTo” and all “return true” parts to “return null”.
Thank you for your reprt, and thanks Wulf for the answers !
updating plugin now with changes
Locked automatically