示例#1
0
        /// <summary>
        ///  This is the event handler for disconnection events after the player has disconnected.
        /// </summary>
        public void OnLateDisconnect(LateDisconnectEvent ev)
        {
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "ipaddress", ev.Connection.IpAddress }
            };

            this.plugin.SendMessage(Config.GetArray("channels.onlatedisconnect"), "round.onlatedisconnect", variables);
        }
示例#2
0
        public void OnLateDisconnect(LateDisconnectEvent ev)
        {
            /// <summary>
            ///  This is the event handler for disconnection events after the player has disconnected.
            /// </summary>
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "ipaddress", ev.Connection.IpAddress }
            };

            plugin.SendMessage(Config.GetArray("channels.onlatedisconnect"), "round.onlatedisconnect", variables);
        }
示例#3
0
        public void OnLateDisconnect(LateDisconnectEvent ev)
        {
            List <PlayerData> playerlist    = plugin.onlinePlayerList.ToList();
            List <Player>     playersOnline = plugin.Server.GetPlayers();

            foreach (PlayerData player in playerlist)
            {
                plugin.Debug("players is disconecting " + ev.Connection.IpAddress);
                plugin.Debug("ip found in list: " + player.player.IpAddress);
                if (!playersOnline.Contains(player.player))
                {
                    plugin.Info("player " + player.player.Name + " is logging out");
                    plugin.onlinePlayerList.Remove(player);
                }
            }
        }
示例#4
0
 public void OnLateDisconnect(LateDisconnectEvent ev)
 {
     send(ev, new IdMapping()
          .appendId(Lib.CONNECTION_ID, ev.Connection)
          );
 }
示例#5
0
 public void OnLateDisconnect(LateDisconnectEvent ev)
 {
     // In case a player disconnects
     CheckReveal();
 }
示例#6
0
 public void OnLateDisconnect(LateDisconnectEvent ev) => CustomPlayerManager.DisconnectEvent();