예제 #1
0
 internal void OnScp106Contain(ContainingEventArgs ev)
 {
     if (!config.Scp.canScp106getContained)
     {
         ev.IsAllowed = false;
     }
 }
예제 #2
0
 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);
     }
 }
예제 #4
0
 public void larryRecontained(ContainingEventArgs ev)
 {
     if (Config.allowDropOnLarryDeath)
     {
         LarryContained = true;
     }
 }
예제 #5
0
 private static void OnContaining(ContainingEventArgs ev)
 {
     if (ev.Player == _player && !_config.ScpFriendlyFire)
     {
         ev.IsAllowed = false;
     }
 }
예제 #6
0
 public void OnContaining(ContainingEventArgs ev)
 {
     if (API.IsSerpent(ev.Player) && !config.SerpentsHandModifiers.FriendlyFire)
     {
         ev.IsAllowed = false;
     }
 }
예제 #7
0
        private static bool Prefix(CharacterClassManager __instance)
        {
            var ev = new ContainingEventArgs(API.Features.Player.Get(__instance.gameObject));

            Scp106.OnContaining(ev);

            return(ev.IsAllowed);
        }
예제 #8
0
 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)
     });
 }
예제 #9
0
        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);
        }
예제 #10
0
 /// <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);
예제 #11
0
 /// <inheritdoc cref="Exiled.Events.Handlers.Scp106.OnContaining(ContainingEventArgs)"/>
 public void OnContaining(ContainingEventArgs ev)
 {
     Log.Info($"{ev.Player.Nickname} is being contained as SCP-106!");
 }
예제 #12
0
 public void OnScp106Contain(ContainingEventArgs ev)
 {
     is106Contained = true;
 }
예제 #13
0
 public void OnContain106(ContainingEventArgs ev) => isContain106 = true;