Updated badges plugin for latest mod version

I hope I don't have to do this again. If I do, I'm going to turn the
plugin into an equivalent to the entire mod.