Good afternoon. Tell me how to make a reconnection from 1 server to another. I'm a newbie trying to do this but it doesn't work

using Oxide.Core.Libraries.Covalence;

namespace Oxide.Plugins
{
    [Info("Reconect", "GmDen", "0.0.1")]
    class Reconect : RustPlugin
    {

        private object CanUserLogin(string username, string userid, string ip)
        {
            IPlayer player = covalence.Players.FindPlayerById(userid);

                ConsoleNetwork.SendClientCommandImmediate(player.Connection, "nexus.redirect", "888.888.888.888", "8888", "");
                ConnectionAuth.Reject(player.Connection, "Redirecting to new server");
                PlatformService.Instance.EndPlayerSession(ulong.Parse(userid));

            return true;
        }

       
    }
}