Quote:
Originally Posted by WTFIDKBBQ
Code:
public static void StartServer()
{
try
{
try
{
// Put your code from the main statement in Program.cs here
}
catch (Exception e) { World.WriteLine(e.ToString()); }
}
catch (Exception EXC)
{
World.WriteLine(EXC);
}
}
Lolwtf
|
My original code is split in half so it configures and loads the database, then starts the server threads. That's why there are two.
Code:
public static void StartServer()
{
try
{
try
{
// Where the config file is read and maps start to load
}
catch (Exception e) { World.WriteLine(e.ToString()); }
// server is loaded
}
catch (Exception EXC)
{
World.WriteLine(EXC);
}
}
I've gotten better since this source. This was just one of my less organized ones.