make AdminOpcode enum numbers

Thanks to previous work they will be converted to a string anyways, so they need not be strings here.
This commit is contained in:
modeco80 2024-03-12 02:53:53 -04:00
parent cfed6dbfa3
commit acd2b949b8

View File

@ -32,21 +32,21 @@ export enum Rank {
// All used admin opcodes as a enum
export enum AdminOpcode {
Login = '2',
MonitorCommand = '5',
Restore = '8',
Reboot = '10',
BanUser = '12',
ForceVote = '13',
MuteUser = '14',
KickUser = '15',
EndTurn = '16',
ClearTurns = '17',
RenameUser = '18',
GetIP = '19',
BypassTurn = '20',
ChatXSS = '21',
ToggleTurns = '22',
IndefiniteTurn = '23',
HideScreen = '24'
Login = 2,
MonitorCommand = 5,
Restore = 8,
Reboot = 10,
BanUser = 12,
ForceVote = 13,
MuteUser = 14,
KickUser = 15,
EndTurn = 16,
ClearTurns = 17,
RenameUser = 18,
GetIP = 19,
BypassTurn = 20,
ChatXSS = 21,
ToggleTurns = 22,
IndefiniteTurn = 23,
HideScreen = 24
}