public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (plugin.GetConfigBool("bwr_disable")) { plugin.PluginManager.DisablePlugin(plugin); } broadcast = plugin.GetConfigBool("bwr_broadcast"); duration = plugin.GetConfigInt("bwr_broadcast_duration"); broadcast_string = plugin.GetConfigString("bwr_broadcast_string"); isMonospaced = plugin.GetConfigBool("bwr_broadcast_monospaced"); mode = plugin.GetConfigString("bwr_replacer_mode"); replace_word = plugin.GetConfigString("bwr_replacer_word"); path = plugin.GetConfigString("bwr_badwords_dictionary_path"); dictionarypath = path + FileManager.GetPathSeparator().ToString() + "BadWordsDictionary.txt"; if (path.IsEmpty() || !path.IsEmpty() && !Directory.Exists(path) && !File.Exists(dictionarypath)) { path = FileManager.GetAppFolder(true, true, ""); plugin.Warn("Directory doesn't exists! Please, set value for config setting bwr_badwords_dictionary_path"); } else if (Directory.Exists(path) && !File.Exists(dictionarypath)) { plugin.Warn($"BadWordsDictionary.txt doesn't exists! Empty file BadWordsDictionarty.txt has been created in {dictionarypath}"); File.Create(dictionarypath); } }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { /// <summary> /// This event handler will call when the server is waiting for players /// </summary> plugin.SendMessage(Config.GetArray("channels.onwaitingforplayers"), "round.onwaitingforplayers"); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { // Clear the list of SCP-457 players plugin.RemoveAllScp457(); // Cache all the config values for this round plugin.RefreshConfig(); MinHealHealth = plugin.GetConfigFloat("scp457_min_health_heal") * 0.1f; MaxHealHealth = plugin.GetConfigFloat("scp457_max_health_heal") * 0.1f; BaseDamage = plugin.GetConfigFloat("scp457_basedamage"); MaxDamage = plugin.GetConfigFloat("scp457_maxdamage"); DamageDecrease = plugin.GetConfigFloat("scp457_damagedecrease"); DamageStep = plugin.GetConfigFloat("scp457_damagestep"); BaseDamageRadius = plugin.GetConfigFloat("scp457_baseradius"); MaxDamageRadius = plugin.GetConfigFloat("scp457_maxradius"); DamageRadiusDecrease = plugin.GetConfigFloat("scp457_radiusdecrease"); DamageRadiusStep = plugin.GetConfigFloat("scp457_radiusstep"); Scp457DefaultHp = plugin.GetConfigInt("scp457_health"); Scp457TutorialAllies = plugin.GetConfigBool("scp457_tutorialallies"); Scp457SpawnChance = plugin.GetConfigFloat("scp457_spawnchance"); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!SCPSpeech.Enabled) { plugin.PluginManager.DisablePlugin(plugin); } }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { /// <summary> /// This event handler will call when the server is waiting for players /// </summary> plugin.SendMessageAsync(plugin.GetConfigString("discord_channel_onwaitingforplayers"), plugin.MultiLanguage(21)); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { var1 = 0; var2 = 0; MVP = "0"; Name = "nadie"; }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!plugin.GetConfigBool("sp_enabled")) { plugin.PluginManager.DisablePlugin(plugin); } }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { /// <summary> /// This event handler will call when the server is waiting for players /// </summary> plugin.SendMessageToBot(plugin.GetConfigString("discord_channel_onwaitingforplayers"), "round.onwaitingforplayers"); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { //Reload theese configs on each round restart this.damageAmount = plugin.GetConfigInt(SCP008.damageAmountConfigKey088); this.damageInterval = plugin.GetConfigInt(SCP008.damageIntervalConfigKey088); this.rolesCanBecomeInfected = plugin.GetConfigIntList(SCP008.rolesCanBeInfectedConfigKey088).ToList(); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!ConfigManager.Manager.Config.GetBoolValue("cda_enable", true, false)) { plugin.pluginManager.DisablePlugin(plugin); } }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!plugin.UpToDate) { plugin.outdatedmsg(); } configs.Clear(); foreach (int role in System.Enum.GetValues(typeof(Role))) { foreach (int ammo in System.Enum.GetValues(typeof(AmmoType))) { if (ammo >= -1) { try { configs.Add((Role)role + "__AMMO_" + ammo, plugin.GetConfigInt((Role)role + "__AMMO_" + ammo)); } catch (System.ArgumentException) { } } } } }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (plugin.GetConfigBool("void_disable")) { plugin.PluginManager.DisablePlugin(plugin); } void_SecondsToRespawn = plugin.GetConfigInt("void_secondstorespawn"); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!isQueue) { return; } ev.Server.Map.Broadcast(20, Translation["tutorial"], false); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (plugin.GetConfigBool("ffre_disable")) { plugin.PluginManager.DisablePlugin(plugin); } SetFriendly(false); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!IsServerLoaded) { IsServerLoaded = true; } plugin.luaHookCall.Function.Call("OnWaitingForPlayers", ev.Server); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (plugin.GetConfigBool("ne_disable")) { plugin.PluginManager.DisablePlugin(plugin); return; } NE_Config.SetupConfig(plugin); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (ConfigManager.Manager.Config.GetBoolValue("rank_enabled", true)) { DBConnection db = new DBConnection(main); db.AddTable(); Main.rankconfigs = RankManagement.GetConfig(); } }
// This thing below fetches the rooms each different round public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { rooms = ev.Server. Map .Get079InteractionRooms(Scp079InteractionType.SPEAKER) // So it uses the SPEAKER one first, as it appears it works better .Concat(PluginManager.Manager.Server.Map.Get079InteractionRooms(Scp079InteractionType.CAMERA)) // So the remaining ones get the CAMERA ones which appear to have no issue .Distinct(new DistinctRoomComparer()) // So you don't ever get two spawns in the same place .ToList(); // So you don't have to iterate over an IEnumerable over and over, which works way worse that if it wasn't a list }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { cntdrin = 0; murders = 0; salud = 0; jugadore = 0; scientist = "0"; scientistdead = false; cont = 0; }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { Boom = false; Pasivaa.Clear(); level = 0; elevatoss = false; }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!plugin.UpToDate) { plugin.outdatedmsg(); } enabled = plugin.GetConfigBool("914helditems_enable"); currentonly = plugin.GetConfigBool("914helditems_currentonly"); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { DoorArray = UnityEngine.Object.FindObjectsOfType <Door>(); foreach (KeyValuePair <string, ICommand079> Command in Pro079.Manager.Commands) { Command.Value.CurrentCooldown = 0; } Pro079.Manager.UltimateCooldown = 0; Pro079.Manager.CassieCooldown = 0; }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!this.plugin.GetConfigBool("ddrop_enable")) { this.plugin.pluginManager.DisablePlugin(plugin); } // refresh these on round restart this.cachedPlayers = new Dictionary <string, CachedPlayer>(); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (plugin.GetConfigBool("ow_disable")) { Smod2.PluginManager.Manager.DisablePlugin(plugin.Details.id); return; } OverwatchMain.CheckIfSteamIdIsInOverwatch.Clear(); ow_restore = plugin.GetConfigBool("ow_restore"); }
public void InvokeWaitingForPlayers(WaitingForPlayersEvent ev, NPServer server) { WaitingForPlayers.InvokeSafely(ev); if (!AddonInstances.TryGetValue(server, out IAddonDedicated <IConfig, IConfig> addon)) { return; } addon.InvokeWaitingForPlayers(ev); }
// private System.Timers.Timer ulck = new System.Timers.Timer(); // private void InitTimer(uint time) // { // ulck.Interval = time * 1000; // ulck.AutoReset = false; // ulck.Enabled = true; // ulck.Elapsed += delegate // { // foreach (Smod2.API.Door door in PluginManager.Manager.Server.Map.GetDoors()) // { // door.Locked = false; // } // ulck.Enabled = false; // }; // } public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!plugin.UpToDate) { plugin.outdatedmsg(); } autoshuttime = plugin.GetConfigInt("ss_autoshut_time"); doorlist = plugin.GetConfigList("ss_autoshut_doors"); scp079blklst = plugin.GetConfigList("ss_079_blacklist_doors"); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { plugin.RefreshConfig(); doors = plugin.doors.Contains("*") ? ev.Server.Map.GetDoors().ToArray() : ev.Server.Map.GetDoors().Where(door => plugin.doors.Contains(door.Name.ToUpper())).ToArray(); nextRefreshTime = null; plugin.Info($"Available Doors: {doors.Length}"); preRound = true; }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (!Sitrep.Events.Contains("waitingforplayersevent")) { return; } if (!Sitrep.CustomChannelIds.TryGetValue("waitingforplayersevent", out ulong channel)) { channel = Sitrep.EventsId; } Send(":hourglass: Server čeká na hráče ...", channel); }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { if (disablePlugin) { PluginManager.DisablePlugin(this); return; } cachedBroadcast = GameObject.Find("Host").GetComponent <Broadcast>(); InfectedPlayers.Clear(); isAPlayerDead = false; }
public void OnWaitingForPlayers(WaitingForPlayersEvent ev) { AdminToolbox.lockRound = false; if (ConfigManager.Manager.Config.GetBoolValue("admintoolbox_enable", true, false) == false) { this.plugin.pluginManager.DisablePlugin(this.plugin); } if (!AdminToolbox.isColoredCommand) { AdminToolbox.isColored = ConfigManager.Manager.Config.GetBoolValue("admintoolbox_colors", false); } }