[solved]command changen

mark1234

Member
Aug 7, 2015
52
1
Hello i try to change a command i want that if someone says :brb that they say it in the room and not in wisper can someone help me?

Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.Communication.Packets.Outgoing.Rooms.Avatar;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;


using Plus.Communication.Packets.Outgoing.Inventory.Furni;
using Plus.Database.Interfaces;

namespace Plus.HabboHotel.Rooms.Chat.Commands.User
{
    class BrbCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_brb"; }
        }

        public string Parameters
        {
            get { return ""; }
        }

        public string Description
        {
            get { return "Zet je op afwezig"; }
        }

        public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
        {
            RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
            User.IsAsleep = true;
            Room.SendMessage(new SleepComposer(User, true));
            Session.SendWhisper("Je bent nu afwezig !");
         }
    }
}
 

Users who are viewing this thread

Top