Stuck in loading screen (Reciving Data) when trying to teleport a player.
        [ChatCommand("lobby")]
        void lobby(BasePlayer player)
        {           
            if(permission.UserHasPermission(player.UserIDString, USE))
            {
			    player.ClientRPCPlayer(null, player, "StartLoading");
			    player.StartSleeping();
                            player.Teleport(new Vector3 (-6, 13, 280));
            }
            else {
                SendReply(player, "<color=orange>[ESP] RustLegend:</color> No puedes hacer eso desde aqui!");            
            }

        }

Im using this code to teleport players with permissions to those coords. When running the command the loading screen apears, player gets teleported but the loading screen gets stuck on recieving data. How is the propper way to do it? Thank you very much!

If you are using StartLoading, you should also be calling FinishLoading (which is auto called by game, but ONLY if you set ReceivingSnapshot flag). Also see teleportation plugins for tips (NTeleportation, line 4503).

Okey thank you very much! :)