setMaxPlayers
Added tests
Merge branch 'hotfix/pre-commit'