public override void Load()
        {
            TextReader reader = MyAPIGateway.Utilities.ReadFileInLocalStorage(Name, typeof(ServerConfig));
            var        text   = reader.ReadToEnd();

            reader.Close();

            Config = new ProtectionConfig();

            try
            {
                Config = MyAPIGateway.Utilities.SerializeFromXML <ProtectionConfig>(text);
            }
            catch
            {
                Logger.Debug("Protection was corrupt and will not be loaded.");
                return;
            }

            Logger.Debug("Protection loaded.");
        }
 public override void Create()
 {
     Config = new ProtectionConfig();
 }
 public override void ProcessServer()
 {
     Config = ProtectionHandler.Config;
     ConnectionHelper.SendMessageToPlayer(SenderSteamId, this);
 }