mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
677 B
677 B
Home > bitburner > NS > renamePurchasedServer
NS.renamePurchasedServer() method
Rename a purchased server.
Signature:
renamePurchasedServer(hostname: string, newName: string): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
hostname | string | Current server hostname. |
newName | string | New server hostname. |
Returns:
boolean
True if the upgrade succeeded, and false otherwise.
Remarks
RAM cost: 2.00 GB