Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(server/storage): block non-existent groups from PlayerData (#…
…527) * feat(server/storage): add cleanplayergroups command Adds cleanplayergroups command to remove invalid groups from the player_groups table to prevent issues with PlayerData loading * fix(server/storage): prevent non-gang types in gangs table While it's generally expected that gangs would be the only other type of data in the player_groups table this could lead to situations where a non-gang group could be errorneously pushed into the PlayerData.gangs table * fix(server/storage): block nonexistant groups from PlayerData This prevents invalid groups from being pushed into the PlayerData object and advises the user to check their configuration * chore(server/storage): add comment for command * refactor(server/storage): remove unused event * refactor(server/storage): check for valid grades * refactor(server/storage): extract to function * feat(server/storage): add convar for automatic cleaning
- Loading branch information