/// <summary>Eject a user from a group</summary>
        /// <param name="group">Group ID to eject the user from</param>
        /// <param name="member">Avatar's key to eject</param>
        public void EjectUser(UUID group, UUID member)
        {
            OpenMetaverse.Packets.EjectGroupMemberRequestPacket eject = new EjectGroupMemberRequestPacket();
            eject.AgentData = new EjectGroupMemberRequestPacket.AgentDataBlock();
            eject.AgentData.AgentID = Client.Self.AgentID;
            eject.AgentData.SessionID = Client.Self.SessionID;

            eject.GroupData = new EjectGroupMemberRequestPacket.GroupDataBlock();
            eject.GroupData.GroupID = group;

            eject.EjectData = new EjectGroupMemberRequestPacket.EjectDataBlock[1];
            eject.EjectData[0] = new EjectGroupMemberRequestPacket.EjectDataBlock();
            eject.EjectData[0].EjecteeID = member;

            Client.Network.SendPacket(eject);
        }
Exemple #2
0
 /// <summary>
 /// Eject a user from a group
 /// </summary>
 /// <param name="group">Group to eject the user from</param>
 /// <param name="member">Avatar's key to eject</param>
 public void EjectUser(LLUUID group, LLUUID member)
 {
     libsecondlife.Packets.EjectGroupMemberRequestPacket eject = new EjectGroupMemberRequestPacket();
     eject.AgentData = new EjectGroupMemberRequestPacket.AgentDataBlock();
     eject.AgentData.AgentID = Client.Self.AgentID;
     eject.AgentData.SessionID = Client.Self.SessionID;
     //Group
     eject.GroupData = new EjectGroupMemberRequestPacket.GroupDataBlock();
     eject.GroupData.GroupID = group;
     //People to eject
     eject.EjectData = new EjectGroupMemberRequestPacket.EjectDataBlock[1];
     eject.EjectData[0] = new EjectGroupMemberRequestPacket.EjectDataBlock();
     eject.EjectData[0].EjecteeID = member;
     //send it
     Client.Network.SendPacket(eject);
 }