Added first part of duel stats

This commit is contained in:
2025-09-01 14:53:52 +02:00
parent 3c0d577aa6
commit 22eb67d5d1
7 changed files with 254 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import z from "zod"
import { bedwarsStatsSchema, skywarsStatsSchema } from "./stats"
import { bedwarsStatsSchema, duelsStatsSchema, skywarsStatsSchema } from "./stats"
export const playerSchema = z.looseObject({
player: z.looseObject({
@@ -15,7 +15,8 @@ export const playerSchema = z.looseObject({
achievements: z.record(z.string(), z.number()).optional(),
stats: z.looseObject({
Bedwars: bedwarsStatsSchema.optional(),
SkyWars: skywarsStatsSchema.optional()
SkyWars: skywarsStatsSchema.optional(),
Duels: duelsStatsSchema.optional()
}).optional(),
quests: z.record(
z.string(),