I just had to move servers to a new IP. So I setup a VPS and bound my old IP's to it, setup a 2 slot server mimicing the old ones. Threw this plugin on them and added this line to the server.cfg file.
Code:
sm_autoredirect_addr "127.0.0.1:27015"
Obviously replacing the localhost with the new IP.
When a player joins the server they will be asked to connect to the new server. If they do not accept within the time limit, they will be kicked.
This is a direct mod of this plugin:
https://forums.alliedmods.net/showth...35645?p=535645
That plugin's functionality is still entirely intact.
Cvars:
Code:
sm_autoredirect_version: Plugin version
sm_autoredirect: 1/0 Enable/Disable the automated prompt. Default: 1
sm_autoredirect_addr: "ip:port" for the server to migrate to.
sm_autoredirect_time: Seconds allowed to accept before kick. Default: 25.0
sm_autoredirect_reason: Message displayed in the redirect prompt. Also used as the kick message. Default: "Please accept the server redirect prompt!"