예제 #1
0
		public override void OnPreSave(KWReplayFile replay)
		{
			config = GetConfiguration<Plugin_MatchOfTheDay_Config>();
			if (DateTime.Today.Date != config.LastMatch.Date)
			{
				config.LastMatch = DateTime.Today;
				config.CounterOfToday = 0;
			}
			SaveConfiguration(config);
		}
예제 #2
0
		public override void Init() 
		{
			rc = new Plugin_MatchOfTheDay_Regex(Host);
			config = GetConfiguration<Plugin_MatchOfTheDay_Config>();
			if (config.LastMatch.Date != DateTime.Today.Date)
			{
				config.LastMatch = DateTime.Now;
				config.CounterOfToday = 0;
			}
			SaveConfiguration(config);
		}
예제 #3
0
		public override void OnSaveComplete(string SavedFilename, string Fullname, KWReplayFile replay)
		{
			config = GetConfiguration<Plugin_MatchOfTheDay_Config>();
			config.CounterOfToday++;
			SaveConfiguration(config);
		}