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