mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
19 lines
515 B
TypeScript
19 lines
515 B
TypeScript
import { AdminCommands } from 'websocket';
|
|
|
|
export class AdminService {
|
|
static adjustMod(userName: string, shouldBeMod?: boolean, shouldBeJudge?: boolean): void {
|
|
AdminCommands.adjustMod(userName, shouldBeMod, shouldBeJudge);
|
|
}
|
|
|
|
static reloadConfig(): void {
|
|
AdminCommands.reloadConfig();
|
|
}
|
|
|
|
static shutdownServer(reason: string, minutes: number): void {
|
|
AdminCommands.shutdownServer(reason, minutes);
|
|
}
|
|
|
|
static updateServerMessage(): void {
|
|
AdminCommands.updateServerMessage();
|
|
}
|
|
}
|