Added card for cops and crims

This commit is contained in:
2025-09-08 14:53:32 +02:00
parent 82636ade5c
commit eb58dde03f
6 changed files with 128 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import z from "zod"
import {
bedwarsStatsSchema,
buildBattleStatsSchema,
copsAndCrimsStatsSchema,
duelsStatsSchema,
megawallsStats,
murderMysteryStatsSchema,
@@ -32,10 +33,12 @@ export const playerSchema = z.looseObject({
UHC: uhcSchema.optional(),
Pit: pitStats.optional(),
TNTGames: tntGamesStatsSchema.optional(),
Walls3: megawallsStats.optional()
}).transform(({ Walls3, ...rest }) => {
Walls3: megawallsStats.optional(),
MCGO: copsAndCrimsStatsSchema.optional()
}).transform(({ Walls3, MCGO, ...rest }) => {
return {
MegaWalls: Walls3,
CopsAndCrims: MCGO,
...rest
}
}).optional(),