Launceston magistrate warns drunk P-plater