Fix warnings in PlayerRegistry