Add getMaxPlayers function and set server player limit to max player count