public void Leave(Player player) { RemovePlayer(player); Packets.SendChatCommand(player, Player.ChatCommand.GROUPLEFT, player.FLPlayerID); foreach (var member in Members) { Packets.SendChatCommand(member, Player.ChatCommand.GROUPMEMBERLEFT, player.FLPlayerID); } }
public void InviteAccepted(Player playerJoined, Player playerInviter) { Packets.SendChatCommand(playerJoined, Player.ChatCommand.GROUPJOINED, playerInviter.FLPlayerID); foreach (Player member in Members) { Packets.SendChatCommand(member, Player.ChatCommand.NEWGROUPMEMBER, playerJoined.FLPlayerID); if (member != playerInviter) { Packets.SendChatCommand(playerJoined, Player.ChatCommand.NEWGROUPMEMBER, member.FLPlayerID); } } AddPlayer(playerJoined); }