Need Update

Error while compiling PreventLooting: 'HashSet<ulong>' does not contain a definition for 'Any' and the best extension method overload 'ParallelEnumerable.Any<PlayerNameID>(ParallelQuery<PlayerNameID>, Func<PlayerNameID, bool>)' requires a receiver of type 'System.Linq.ParallelQuery<ProtoBuf.PlayerNameID>' | Line: 602, Pos: 35

The code in question needs to be:

if (UseCupboard && UseCupboardInclude.Contains(type) && bprev != null)
{
if (ownerid != 0)
{
if (bprev.IsAuthed(player) && bprev.authorizedPlayers.Contains(ownerid)) return true;
}
else
{
if (bprev.IsAuthed(player)) return true;
}
}

nIjwheimesdLqLg.jpg slay3r9903

The code in question needs to be:

if (UseCupboard && UseCupboardInclude.Contains(type) && bprev != null)
{
if (ownerid != 0)
{
if (bprev.IsAuthed(player) && bprev.authorizedPlayers.Contains(ownerid)) return true;
}
else
{
if (bprev.IsAuthed(player)) return true;
}
}

You're the best. I was able to fix it thanks to you.