private void Start()
 {
     if (Settings.Enabled.Value)
     {
         TranslationUtils.InsertTranslations(ModName, ModPath, Settings.OverwriteExisting.Value);
     }
 }
Example #2
0
        private void Awake()
        {
            Log = Logger;

            Settings.Enabled            = Config.Bind("General", "Enabled", true, $"Enable/disable {ModName}'s functionality.");
            Settings.EnableShoutOnDeath = Config.Bind("General", "EnableShoutOnDeath", true, "Enable/disable players shouting random phrases on death.");
            Settings.EnableAlertOnDeath = Config.Bind("General", "EnableAlertOnDeath", true, "Enable/disable server alerts describing a player's death.");

            if (Settings.Enabled.Value)
            {
                _Harmony = Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null);

                TranslationUtils.InsertTranslations(ModName, ModPath);
            }
        }
Example #3
0
        private void Init()
        {
            _Harmony = Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null);

            TranslationUtils.InsertTranslations(ModName, ModPath);
        }