feat(bridge): protocol 7 — a raid frame that names who lives there #7
@@ -1975,6 +1975,23 @@ namespace Oxide.Plugins
|
||||
|
||||
Dictionary<string, object> frame = ClanFrame("clan.disbanded", clan);
|
||||
PutPlayer(frame, "steamId", "name", steamId);
|
||||
|
||||
// Protocol 7: who was in it. The website tells a disbanded clan's members, and by the
|
||||
// time it reads this frame the next board may already have removed the roster it would
|
||||
// otherwise ask — the board is re-sent seconds after this, and after an outage it is
|
||||
// applied before the backlog. The game has deleted the clan from its database by now,
|
||||
// and walked `Members` to drop each one's membership, but it never empties the list
|
||||
// itself — so it is still whole here, bounded by the clan's own member limit.
|
||||
if (clan.Members != null)
|
||||
{
|
||||
List<object> members = new List<object>();
|
||||
|
||||
foreach (ClanMember member in clan.Members)
|
||||
members.Add(member.SteamId.ToString());
|
||||
|
||||
frame["members"] = members;
|
||||
}
|
||||
|
||||
EmitFrame(frame);
|
||||
|
||||
ScheduleClansBoard();
|
||||
|
||||
Reference in New Issue
Block a user