bitburner-src/markdown/bitburner.ns.getpurchasedservers.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

801 B

Home > bitburner > NS > getPurchasedServers

NS.getPurchasedServers() method

Returns an array with either the hostnames or IPs of all of the servers you have purchased.

Signature:

getPurchasedServers(hostnameMode?: boolean): Host[];

Parameters

Parameter Type Description
hostnameMode boolean ] Optional. Defaults to true. Returns hostnames if true, and IPs if false.

Returns:

Host[]

Returns an array with either the hostnames or IPs of all of the servers you have purchased.

Remarks

2.25 GB