Added packet buffering
This commit is contained in:
parent
b9cb3e69e1
commit
1d042fccaa
5 changed files with 120 additions and 6 deletions
|
|
@ -61,15 +61,11 @@ namespace TShockAPI
|
|||
public static UserManager Users;
|
||||
public static ItemManager Itembans;
|
||||
public static RemeberedPosManager RememberedPos;
|
||||
|
||||
public static ConfigFile Config { get; set; }
|
||||
|
||||
public static IDbConnection DB;
|
||||
|
||||
public static Process TShockProcess;
|
||||
public static bool OverridePort;
|
||||
PacketBufferer bufferer;
|
||||
|
||||
public static double ElapsedTime;
|
||||
|
||||
public override Version Version
|
||||
{
|
||||
|
|
@ -186,6 +182,9 @@ namespace TShockAPI
|
|||
Commands.InitCommands();
|
||||
//RconHandler.StartThread();
|
||||
|
||||
if (Config.BufferPackets)
|
||||
bufferer = new PacketBufferer();
|
||||
|
||||
Log.ConsoleInfo("AutoSave " + (Config.AutoSave ? "Enabled" : "Disabled"));
|
||||
Log.ConsoleInfo("Backups " + (Backups.Interval > 0 ? "Enabled" : "Disabled"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue