diff --git a/src/app/player/[id]/page.tsx b/src/app/player/[id]/page.tsx index e698202..44c340a 100644 --- a/src/app/player/[id]/page.tsx +++ b/src/app/player/[id]/page.tsx @@ -4,6 +4,7 @@ import { Card } from "@/components/ui/card"; import { getPlayer } from "mcutils-library"; import { Player } from "mcutils-library/dist/types/player/player"; import { Metadata } from "next"; +import Image from "next/image"; type Params = { params: { @@ -53,8 +54,32 @@ export default async function Page({ params }: Params) { {player == null && } {player != null && ( -
-

Username: {player.username}

+
+
+ The player's skin +
+ +
+
+

{player.username}

+

{player.uniqueId}

+
+ +
+

Skin Parts

+
+ {Object.entries(player.skin.parts).map(([key, value]) => { + return {`The; + })} +
+
+
)} diff --git a/src/app/server/[platform]/[hostname]/page.tsx b/src/app/server/[platform]/[hostname]/page.tsx index 1665a49..5e3d501 100644 --- a/src/app/server/[platform]/[hostname]/page.tsx +++ b/src/app/server/[platform]/[hostname]/page.tsx @@ -8,6 +8,7 @@ import JavaMinecraftServer from "mcutils-library/dist/types/server/javaServer"; import { ServerPlatform } from "mcutils-library/dist/types/server/platform"; import { MinecraftServer } from "mcutils-library/dist/types/server/server"; import { Metadata } from "next"; +import Image from "next/image"; type Params = { params: { @@ -57,10 +58,18 @@ async function getData(platform: ServerPlatform, id: string): Promise
-

Lookup a Server

+

Lookup a {capitalizeFirstLetter(platform)} Server

You can enter a server hostname to get information about the server.

@@ -69,8 +78,21 @@ export default async function Page({ params: { platform, hostname } }: Params) { {server == null && } {server != null && ( -
-

Hostname: {server.hostname}

+
+ {favicon && ( +
+ The server's favicon +
+ )} + +
+

{server.hostname}

+
+

+ Players online: {server.players.online}/{server.players.max} +

+
+
)} diff --git a/src/components/lookup-server.tsx b/src/components/lookup-server.tsx index 732c640..a6da690 100644 --- a/src/components/lookup-server.tsx +++ b/src/components/lookup-server.tsx @@ -25,6 +25,9 @@ export function LookupServer() { * @param platform the server platform */ const lookupServer = (platform: ServerPlatform) => { + if (!hostname || hostname.length === 0) { + return; + } router.push(`/server/${platform}/${hostname}`); };