﻿using galaxy.core.habbolib.gameclients;

namespace galaxy.core.habbolib.rooms.chat.commands.moderator.fun
{
    class CoordsCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get { return "command_coords"; }
        }

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

        public string Description
        {
            get { return "Used to get your current position within the room."; }
        }

        public void Execute(GameClient Session, Room Room, string[] Params)
        {
            RoomUser ThisUser = Room.getRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
            if (ThisUser == null)
                return;

            Session.SendNotification("X: " + ThisUser.X + "\n - Y: " + ThisUser.Y + "\n - Z: " + ThisUser.Z + "\n - Rot: " + ThisUser.rotBody + ", sqState: " + Room.getGamemap().GameMap[ThisUser.X, ThisUser.Y].ToString() + "\n\n - roomId: " + Session.GetHabbo().CurrentroomId);                           
        }
    }
}
