Added EnableAntiLag to ConfigFile.cs

This commit is contained in:
Lucas Nicodemus 2011-07-21 15:07:28 -06:00
parent d1e29e1035
commit a8e55d44e6
2 changed files with 8 additions and 2 deletions

View file

@ -97,6 +97,8 @@ namespace TShockAPI
public bool EnableDNSHostResolution = false; public bool EnableDNSHostResolution = false;
public bool EnableBanOnUsernames = false; public bool EnableBanOnUsernames = false;
public bool EnableAntiLag = true;
public static ConfigFile Read(string path) public static ConfigFile Read(string path)
{ {
if (!File.Exists(path)) if (!File.Exists(path))

View file

@ -116,8 +116,12 @@ namespace TShockAPI
private static bool HandleSync(GetDataHandlerArgs args) private static bool HandleSync(GetDataHandlerArgs args)
{ {
Debug.WriteLine("FUCK SYNCS"); if (TShock.Config.EnableAntiLag)
return true; {
Debug.WriteLine("FUCK SYNCS");
return true;
}
return false;
} }
public static bool HandlerGetData(PacketTypes type, TSPlayer player, MemoryStream data) public static bool HandlerGetData(PacketTypes type, TSPlayer player, MemoryStream data)