Added first part of duel stats
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user