Plugin broken with newest update

Fails to compile with the March 2024 Rust update.

Yeah. It's been 4 years since it's needed an update, but FacePunch have eventually managed to break it. 😉

Can confirm

Fixed it by changing line 350 from

var removePlayer = privilege.authorizedPlayers.Find(x => x.username == newPlayer.displayName);​

to

var removePlayer = privilege.authorizedPlayers.FirstOrDefault(x => x.username == newPlayer.displayName);

 

Ah yeah, that's the good stuff! Thanks @KajWithAJ much appreciated. 🙂