bitburner-src/src/Terminal/commands/sudov.ts

16 lines
471 B
TypeScript
Raw Normal View History

2022-09-06 15:07:12 +02:00
import { Terminal } from "../../Terminal";
2021-09-16 01:50:44 +02:00
import { BaseServer } from "../../Server/BaseServer";
2022-09-13 18:37:24 +02:00
export function sudov(args: (string | number | boolean)[], server: BaseServer): void {
2021-09-16 01:50:44 +02:00
if (args.length !== 0) {
2022-09-06 15:07:12 +02:00
Terminal.error("Incorrect number of arguments. Usage: sudov");
2021-09-16 01:50:44 +02:00
return;
}
if (server.hasAdminRights) {
2022-09-06 15:07:12 +02:00
Terminal.print("You have ROOT access to this machine");
2021-09-16 01:50:44 +02:00
} else {
2022-09-06 15:07:12 +02:00
Terminal.print("You do NOT have root access to this machine");
2021-09-16 01:50:44 +02:00
}
}