From 46a0869b8511d12e11cc18f0f9c6db9aadf2929d Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 18 Apr 2024 00:36:50 -0400 Subject: [PATCH] Format server player count in embed with commas --- Frontend/src/app/(pages)/server/[[...slug]]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx b/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx index 8b2793b..5509e19 100644 --- a/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx +++ b/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx @@ -103,7 +103,7 @@ export const generateMetadata = async ({ ); // Get the server to embed return Embed({ title: `${capitialize(platform)} Server: ${server.hostname}`, - description: `There are ${server.players.online}/${server.players.max} playing here!\n\nClick to view data about this server.`, + description: `There are ${server.players.online.toLocaleString()}/${server.players.max.toLocaleString()} playing here!\n\nClick to view data about this server.`, thumbnail: (server as CachedJavaMinecraftServer).favicon?.url, }); } catch (err) {