mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-25 17:13:47 +01:00
798da75d83
* Update doc error, regenerate docs * Update a bad error message in renamePurchasedServer@serverPurchases.ts * restore true/false return (removed in #450 due to miscommunication)
32 lines
663 B
Markdown
32 lines
663 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [renamePurchasedServer](./bitburner.ns.renamepurchasedserver.md)
|
|
|
|
## NS.renamePurchasedServer() method
|
|
|
|
Rename a purchased server.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
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
|
|
|