mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-04 04:17:33 +01:00
19 lines
518 B
TypeScript
19 lines
518 B
TypeScript
import { ITerminal } from "../ITerminal";
|
|
import { IRouter } from "../../ui/Router";
|
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
|
import { BaseServer } from "../../Server/BaseServer";
|
|
|
|
export function hostname(
|
|
terminal: ITerminal,
|
|
router: IRouter,
|
|
player: IPlayer,
|
|
server: BaseServer,
|
|
args: (string | number)[],
|
|
): void {
|
|
if (args.length !== 0) {
|
|
terminal.error("Incorrect usage of hostname command. Usage: hostname");
|
|
return;
|
|
}
|
|
terminal.print(player.getCurrentServer().hostname);
|
|
}
|