bitburner-src/markdown/bitburner.ns.renamepurchasedserver.md
omuretsu 798da75d83 renameServer changes
* Update doc error, regenerate docs
* Update a bad error message in renamePurchasedServer@serverPurchases.ts
* restore true/false return (removed in  due to miscommunication)
2023-03-28 16:10:24 -04:00

663 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 successful, and false otherwise.

Remarks

RAM cost: 0 GB