mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
If a player tries to zone to a offline server they will see a standard error message. Also a reconnection attempt will be made on a disconnected server.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace FFXIVClassic_World_Server.DataObjects
|
||||
ownedZoneIds.Add(id);
|
||||
}
|
||||
|
||||
public void Connect()
|
||||
public bool Connect()
|
||||
{
|
||||
Program.Log.Info("Connecting to zone server @ {0}:{1}", zoneServerIp, zoneServerPort);
|
||||
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(zoneServerIp), zoneServerPort);
|
||||
@@ -60,7 +60,9 @@ namespace FFXIVClassic_World_Server.DataObjects
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{ Program.Log.Error("Failed to connect"); return; }
|
||||
{ Program.Log.Error("Failed to connect"); return false; }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void SendPacket(SubPacket subpacket)
|
||||
|
Reference in New Issue
Block a user