mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Webatrice admin commands (#5051)
* Add AdminCommand.updateServerMessage * Add AdminCommand.shutdownServer * Add AdminCommand.reloadConfig * Cleanup * Add AdminCommand.adjustMod * Lint * Lint
This commit is contained in:
parent
e45c4042fe
commit
34d70980e8
11 changed files with 167 additions and 0 deletions
17
webclient/src/websocket/persistence/AdminPresistence.ts
Normal file
17
webclient/src/websocket/persistence/AdminPresistence.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
export class AdminPersistence {
|
||||
static adjustMod(userName: string, shouldBeMod: boolean, shouldBeJudge: boolean) {
|
||||
console.log('adjustMod');
|
||||
}
|
||||
|
||||
static reloadConfig() {
|
||||
console.log('reloadConfig');
|
||||
}
|
||||
|
||||
static shutdownServer() {
|
||||
console.log('shutdownServer');
|
||||
}
|
||||
|
||||
static updateServerMessage() {
|
||||
console.log('updateServerMessage');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue