Example #1
0
 private void onLevelLoaded(int level)
 {
     if (!AnimalsDataManager.load())
     {
         Logger.LogWarning("Animals couldn't be loaded.");
         UnloadPlugin();
     }
 }
Example #2
0
 private void FixedUpdate()
 {
     if (this.Configuration.Instance.InitiateOnTimeEvent && U.Settings.Instance.AutomaticSave.Enabled)
     {
         if (nextSaveTime.HasValue && nextSaveTime.Value < DateTime.Now)
         {
             AnimalsDataManager.save();
             restartTimer();
         }
     }
 }
Example #3
0
 protected override void execute(CSteamID executorID, string parameter)
 {
     AnimalsDataManager.save();
     commandSave.check(executorID, commandSave.command, parameter);
 }
Example #4
0
 public void ExecutSaveCommand(IRocketPlayer caller, string[] parameters)
 {
     AnimalsDataManager.save();
 }
Example #5
0
 private void onServerShutdown()
 {
     AnimalsDataManager.save();
 }