public void SetupConfig(Smod2.Plugin plugin) { NE_DClassitems = plugin.GetConfigIntList("ne_dclassitems"); NE_DClassammo = plugin.GetConfigIntList("ne_dclassammo"); NE_NukeStartTimes = plugin.GetConfigIntList("ne_nuketime"); NE_SpawnProtect = plugin.GetConfigInt("ne_spawnprotect"); NE_NukeTime = NE_NukeStartTimes[rand.Next(0, NE_NukeStartTimes.Length - 1)]; NE_InfiniteAmmo = plugin.GetConfigBool("ne_dclassinfammo"); NE_Broadcast = plugin.GetConfigBool("ne_broadcast"); NE_NukeShouldMessage = plugin.GetConfigBool("ne_nukeshow"); NE_BroadcastMessage = plugin.GetConfigString("ne_broadcastmessage"); NE_BroadcastMessage = NE_BroadcastMessage.Replace("NUKETIME", NE_NukeTime.ToString()); NE_BroadcastMessage = NE_BroadcastMessage.Replace("SPAWNPROTECT", NE_SpawnProtect.ToString()); NE_NukeMessage = plugin.GetConfigString("ne_nukemessage"); NE_WelcomeMessage = plugin.GetConfigString("ne_welcomemessage"); NE_NukeActive = false; NE_HasServerStarted = false; }
public ServerEventHandler(Smod2.Plugin pl) { plugin = pl; sensitiveInfo = plugin.GetConfigBool("bbd_sendsensitiveinfo"); }