OnPlayerAddedToPVPDelay hook brokenSolved

FYI, Facepunch changed the type of `BasePlayer.userID` to `BasePlayer.EncryptedValue<ulong>` around July 2024.

I haven't tested with Carbon, but this definitely means that other plugins trying to catch `OnPlayerAddedToPVPDelay` hook calls using `ulong` as the first parameter type silently fail to trigger.

An easy fix for this is to change the hook call to look like this:

Interface.CallHook("OnPlayerAddedToPVPDelay", player.userID.Get(), zoneId, baseEvent.PvpDelayTime);​

You have tested this proposed change?

Yes, tested with my extensive overhaul of ZonePvxInfo. I also applied this fix to several other plugins that broke a month or two ago.

p8w70GAQMoLHdHu.jpg CatMeat

You have tested this proposed change?

i have had this change integrated into my plugin (in the description for people to make the change themselves to their copy) for a little over a month now, since it broke with the July update. works well

Locked automatically