Esempio n. 1
0
        public AdminRoomUserMessageArgs(GameClient session)
        {
            this.session = session;
            this.RoomUser = null;
            this.allowsExecution = false;
            this.Room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(session.GetHabbo().CurrentRoomId);

            if (Room != null)
            {
                this.allowsExecution = Room.CheckRights(session, true);
                this.RoomUser = Room.GetRoomUserManager().GetRoomUserByHabbo(session.GetHabbo().Id);
            }

            if (Room == null || RoomUser == null || !allowsExecution)
                allowsExecution = false;
        }
Esempio n. 2
0
 public ElevatedUserRoomMessageArgs(GameClient session)
 {
     this.session = session;
     this.Room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(session.GetHabbo().CurrentRoomId);
     this.allowsExecution = (Room != null && Room.CheckRights(session, false));
 }