mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
771 B
771 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): string[];
Parameters
| Parameter | Type | Description |
|---|---|---|
| hostnameMode | boolean | Optional. Defaults to true. Returns hostnames if true, and IPs if false. |
Returns:
string[]
Returns an array with either the hostnames or IPs of all of the servers you have purchased.
Remarks
2.25 GB