internal void OnScp106Contain(ContainingEventArgs ev) { if (!config.Scp.canScp106getContained) { ev.IsAllowed = false; } }
public void OnContain106(ContainingEventArgs ev) { if (shPlayers.Contains(ev.Player.Id) && !SerpentsHand.instance.Config.FriendlyFire) { ev.IsAllowed = false; } }
public async void OnContaining(ContainingEventArgs ev) { if (Instance.Config.EventsToLog.ContainingScp106 && (!ev.Player.DoNotTrack || !Instance.Config.ShouldRespectDoNotTrack)) { await Network.SendAsync(new RemoteCommand("log", "gameEvents", string.Format(Language.Scp106WasContained, ev.Player.Nickname, Instance.Config.ShouldLogUserIds ? ev.Player.UserId : Language.Redacted, ev.Player.Role))).ConfigureAwait(false); } }
public void larryRecontained(ContainingEventArgs ev) { if (Config.allowDropOnLarryDeath) { LarryContained = true; } }
private static void OnContaining(ContainingEventArgs ev) { if (ev.Player == _player && !_config.ScpFriendlyFire) { ev.IsAllowed = false; } }
public void OnContaining(ContainingEventArgs ev) { if (API.IsSerpent(ev.Player) && !config.SerpentsHandModifiers.FriendlyFire) { ev.IsAllowed = false; } }
private static bool Prefix(CharacterClassManager __instance) { var ev = new ContainingEventArgs(API.Features.Player.Get(__instance.gameObject)); Scp106.OnContaining(ev); return(ev.IsAllowed); }
public void OnScp106Contain(ContainingEventArgs ev) { // 'player' is the player who hit the button, not 106 tcp.SendData(new DataObjects.Events.Player { eventName = "Scp106Contain", player = PlyToUser(ev.Player) }); }
internal void Containing(ContainingEventArgs ev) { if (Plugin.Instance.Config.Containing == "") { return; } string message = Plugin.Instance.Config.Containing.Replace("%player%", ev.Player.ToString()); message = message.Replace("%team%", ev.Player.Team.ToString()); if (Plugin.Instance.Config.debug_to_console) { Log.Debug(message: "[ " + Plugin.Instance.Config.scp106_name + "] " + message); } Plugin.sendWebHook(Plugin.Instance.Config.scp106_url, message, Plugin.Instance.Config.scp106_name); }
/// <summary> /// Called before containing SCP-106. /// </summary> /// <param name="ev">The <see cref="ContainingEventArgs"/> instance.</param> public static void OnContaining(ContainingEventArgs ev) => Containing.InvokeSafely(ev);
/// <inheritdoc cref="Exiled.Events.Handlers.Scp106.OnContaining(ContainingEventArgs)"/> public void OnContaining(ContainingEventArgs ev) { Log.Info($"{ev.Player.Nickname} is being contained as SCP-106!"); }
public void OnScp106Contain(ContainingEventArgs ev) { is106Contained = true; }
public void OnContain106(ContainingEventArgs ev) => isContain106 = true;