/// <summary> Adds the given bot to that player's tab list (if their client support it). </summary> public static void Add(Player dst, PlayerBot b) { if (!dst.hasExtList) { return; } string name = b.color + b.name, group = "Bots"; OnTabListEntryAddedEvent.Call(b, ref name, ref group, dst); dst.Send(Packet.ExtAddPlayerName(b.id, b.name, name, group, 0, dst.hasCP437)); }
/// <summary> Adds the given player to that player's tab list (if their client supports it). </summary> public static void Add(Player dst, Player p, byte id) { if (!dst.hasExtList) { return; } byte grpPerm = (byte)(offset - p.Rank); if (!ServerConfig.TablistRankSorted) { grpPerm = 0; } string name, group; GetEntry(p, dst, out name, out group); name = Colors.Cleanup(name, dst.hasTextColors); group = Colors.Cleanup(group, dst.hasTextColors); dst.Send(Packet.ExtAddPlayerName(id, p.truename, name, group, grpPerm, dst.hasCP437)); }