using System;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections.Generic;

using Plus.Communication.Packets.Outgoing.Users;
using Plus.Communication.Packets.Outgoing.Notifications;


using Plus.Communication.Packets.Outgoing.Handshake;
using Plus.Communication.Packets.Outgoing.Quests;
using Plus.HabboHotel.Items;
using Plus.Communication.Packets.Outgoing.Inventory.Furni;
using Plus.Communication.Packets.Outgoing.Catalog;
using Plus.HabboHotel.Quests;
using Plus.HabboHotel.Rooms;
using System.Threading;
using Plus.HabboHotel.GameClients;
using Plus.Communication.Packets.Outgoing.Rooms.Avatar;
using Plus.Communication.Packets.Outgoing.Pets;
using Plus.Communication.Packets.Outgoing.Messenger;
using Plus.HabboHotel.Users.Messenger;
using Plus.Communication.Packets.Outgoing.Rooms.Polls;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Availability;
using Plus.Communication.Packets.Outgoing;
using Plus.Communication.Packets.Outgoing.Rooms.Polls.Questions;

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

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

        public string Description
        {
            get { return "Informa as caracteristicas do servidor."; }
        }

        public void Execute(GameClient Session, Room Room, string[] Params)
        {
            TimeSpan Uptime = DateTime.Now - PlusEnvironment.ServerStarted;
            int OnlineUsers = PlusEnvironment.GetGame().GetClientManager().Count;
            int RoomCount = PlusEnvironment.GetGame().GetRoomManager().Count;

            Session.SendMessage(new RoomNotificationComposer("Informações do servidor",
                 "<font color=\"#000\" size=\"18\">MeV Emuladorr</font> <font color=\"#0489B1\" size=\"13\">MeV</font>\n\n" +
                 "Versão fixada por <u>Victor</u>, Habbriol.\n\n" +
                 "<b>Créditos</b>:\n" +
                 "Victor\n" +
                 "Cristina\n" +
                 "Pires\n" +
                 "Habbriol\n\n" +
                 "<b>Informações reais do Hotel</b>:\n" +
                 "Usuários online: " + OnlineUsers + "\n" +
                 "Quartos carregados: " + RoomCount + "\n" +
                 "Uptime: " + Uptime.Days + " dia(s), " + Uptime.Hours + " hora(s) e " + Uptime.Minutes + " minuto(s).\n\n" +
                 "<b>By for</b>: Victor >>", "plus", ""));

        }
    }
}