コード例 #1
0
ファイル: LoadMods.cs プロジェクト: xorex/7dtd-ServerTools
 public static void Load()
 {
     if (AutoSaveWorld.IsRunning && !AutoSaveWorld.IsEnabled)
     {
         AutoSaveWorld.Stop();
     }
     if (!AutoSaveWorld.IsRunning && AutoSaveWorld.IsEnabled)
     {
         AutoSaveWorld.Start();
     }
     if (Badwords.IsRunning && !Badwords.IsEnabled)
     {
         Badwords.Unload();
     }
     if (!Badwords.IsRunning && Badwords.IsEnabled)
     {
         Badwords.Load();
     }
     if (Bloodmoon.IsRunning && !Bloodmoon.IsEnabled)
     {
         Bloodmoon.Unload();
     }
     if (!Bloodmoon.IsRunning && Bloodmoon.IsEnabled)
     {
         Bloodmoon.Load();
     }
     if (ClanManager.IsEnabled)
     {
         PersistentContainer.Instance.Players.GetClans();
     }
     if (!ClanManager.IsEnabled)
     {
         PersistentContainer.Instance.Players.clans.Clear();
     }
     if (CustomCommands.IsRunning && !CustomCommands.IsEnabled)
     {
         CustomCommands.Unload();
     }
     if (!CustomCommands.IsRunning && CustomCommands.IsEnabled)
     {
         CustomCommands.Load();
     }
     if (Gimme.IsRunning && !Gimme.IsEnabled)
     {
         Gimme.Unload();
     }
     if (!Gimme.IsRunning && Gimme.IsEnabled)
     {
         Gimme.Load();
     }
     if (HighPingKicker.IsRunning && !HighPingKicker.IsEnabled)
     {
         HighPingKicker.Unload();
     }
     if (!HighPingKicker.IsRunning && HighPingKicker.IsEnabled)
     {
         HighPingKicker.Load();
     }
     if (InfoTicker.IsRunning && !InfoTicker.IsEnabled)
     {
         InfoTicker.Unload();
     }
     if (!InfoTicker.IsRunning && InfoTicker.IsEnabled)
     {
         InfoTicker.Load();
     }
     if (InventoryCheck.IsRunning && !InventoryCheck.IsEnabled)
     {
         InventoryCheck.Unload();
     }
     if (!InventoryCheck.IsRunning && InventoryCheck.IsEnabled)
     {
         InventoryCheck.Load();
     }
     if (!Jail.IsRunning && Jail.IsEnabled)
     {
         Jail.Load();
     }
     if (Jail.IsRunning && !Jail.IsEnabled)
     {
         Jail.Unload();
     }
     if (!ReservedSlots.IsRunning && ReservedSlots.IsEnabled)
     {
         ReservedSlots.Load();
     }
     if (ReservedSlots.IsRunning && !ReservedSlots.IsEnabled)
     {
         ReservedSlots.Unload();
     }
     if (!Watchlist.IsRunning && Watchlist.IsEnabled)
     {
         Watchlist.Load();
     }
     if (Watchlist.IsRunning && !Watchlist.IsEnabled)
     {
         Watchlist.Unload();
     }
 }