Error:
"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) Requested 'AutoPurge' for compilation Failed compiling
The error says 'ulong' does not contain a definition for 'userid'. This means that whatever authorizedPlayer is, it's being treated as a ulong type, not an object. This means authorizedPlayer is a ulong. So the simplest fix is just to remove .userid entirely:
Fix is to replace line 429-431 with this: removing .userid
foreach (var authorizedPlayer in privilege.authorizedPlayers) { if (!CanPurgeUser(authorizedPlayer.ToString(), timestamp)) // REMOVED .userid return false; // We CANNOT purge an authorized player }After this fix the plugin loaded without issue.
have not tested for other issues yet.