Failed compiling after update

Failed compiling 'AutoPurge.cs':
1. 'ulong' does not contain a definition for 'userid' and no accessible extension method 'userid' accepting a first argument of type 'ulong' could be found (are you missing a using directive or an assembly reference?) [CS1061]
(AutoPurge 52 line 429

ditto!   

Needs an update thanks.

Same here.

@misticos

From line 418 to 437, try the following code...the plugin loads successfully, but I haven't tested if it works. Used Gemini for the fix...

private bool CanPurge(ulong ownerId, BuildingPrivlidge privilege, uint timestamp)
{
    if (!CanPurgeUser(ownerId.ToString(), timestamp))
        return false; // We CANNOT purge owner, no need to check further
    
    if (privilege == null)
        return true; // We CAN purge owner and there is NO privilege

    // TODO: Results cache per privilege
    // Changed the variable name from authorizedPlayer to authorizedPlayerId for clarity
    foreach (var authorizedPlayerId in privilege.authorizedPlayers) 
    {
        // Fix applied: Use authorizedPlayerId directly, as it's the ulong Steam ID
        if (!CanPurgeUser(authorizedPlayerId.ToString(), timestamp)) 
            return false; // We CANNOT purge an authorized player
    }

    // We CAN purge owner and there are NO users authorized who we CANNOT purge
    return true;
}​

I tried that but no joy so far

check my post, maby it will help you

@RuthlessToothless What post are you referring to?