Ejemplo n.º 1
0
Archivo: RoomKick.cs Proyecto: sgf/Yupi
        public override bool Execute(GameClient session, string[] pms)
        {
            Room room = session.GetHabbo().CurrentRoom;

            string alert = string.Join(" ", pms);
            RoomKick kick = new RoomKick(alert, (int)session.GetHabbo().Rank);
            Yupi.GetGame()
                .GetModerationTool().LogStaffEntry(session.GetHabbo().UserName, string.Empty,
                    "Room kick", "Kicked the whole room");
            room.QueueRoomKick(kick);

            return true;
        }
Ejemplo n.º 2
0
 /// <summary>
 ///     Queues the room kick.
 /// </summary>
 /// <param name="kick">The kick.</param>
 internal void QueueRoomKick(RoomKick kick)
 {
     lock (_roomKick.SyncRoot)
     {
         _roomKick.Enqueue(kick);
     }
 }