事情staytime
永远不会发生,0
但会发生断开连接。
需要staytime
做些什么吗?
foreach (var playe in w_server.OnlineConnections)
{
if (staytime > 1 * 20000 && play.Value.Map == "Rest")
{
staytime = Server.tickcount.ElapsedMilliseconds;
w_server.Disconnect(play.Value.client.connection);
play.Value.Map = "Village1";
staytime = 0;
}
}