bitburner-src/src/Terminal/commands/sudov.ts
Olivier Gagnon 89ea9aaff5 oops
2021-09-17 02:58:02 -04:00

24 lines
626 B
TypeScript

import { ITerminal } from "../ITerminal";
import { IRouter } from "../../ui/Router";
import { IPlayer } from "../../PersonObjects/IPlayer";
import { BaseServer } from "../../Server/BaseServer";
export function sudov(
terminal: ITerminal,
router: IRouter,
player: IPlayer,
server: BaseServer,
args: (string | number)[],
): void {
if (args.length !== 0) {
terminal.error("Incorrect number of arguments. Usage: sudov");
return;
}
if (server.hasAdminRights) {
terminal.print("You have ROOT access to this machine");
} else {
terminal.print("You do NOT have root access to this machine");
}
}