public static string Create(int playerId)
        {
            Entity playerEntity = Game.World.GetEntityById(playerId);

            if (playerEntity == null)
            {
                return(null);
            }

            PlayerStateMessage message = new PlayerStateMessage();

            message.PlayerIP = Game.Internet.GetIP(playerEntity);

            ComputerComponent  playerComputer   = playerEntity.GetComponent <ComputerComponent>();
            List <ProcessInfo> runningProcesses = new List <ProcessInfo>();

            foreach (IApplication application in playerComputer.RunningApplications.Values)
            {
                ProcessInfo processInfo = new ProcessInfo(application);
                runningProcesses.Add(processInfo);
            }

            message.RunningProcesses = runningProcesses;

            return(JsonConvert.SerializeObject(message));
        }
        public override string Execute(int playerId)
        {
            Entity playerEntity = Game.World.GetEntityById(playerId);

            SshServerApplication sshServer =
                playerEntity.GetComponent <ProcessPool <SshServerApplication> >()?[0];

            if (sshServer != null)
            {
                // TODO: Add account on first login.
                // TODO: Set account active

                Game.SendMessageToClient(playerId, PlayerStateMessage.Create(playerId));
            }

            return(null);
        }