/// <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); }
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); }
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); } } }
public void OnLateDisconnect(LateDisconnectEvent ev) { send(ev, new IdMapping() .appendId(Lib.CONNECTION_ID, ev.Connection) ); }
public void OnLateDisconnect(LateDisconnectEvent ev) { // In case a player disconnects CheckReveal(); }
public void OnLateDisconnect(LateDisconnectEvent ev) => CustomPlayerManager.DisconnectEvent();