From d4a4884b8f91e905e401a2636b4744aebf6c8b21 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 8 Apr 2024 04:54:43 +0100 Subject: [PATCH] remove player avatar example --- src/main/java/cc/fascinated/controller/HomeController.java | 3 +-- src/main/java/cc/fascinated/controller/PlayerController.java | 4 +++- src/main/resources/templates/index.html | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/cc/fascinated/controller/HomeController.java b/src/main/java/cc/fascinated/controller/HomeController.java index 783c4de..854c1f6 100644 --- a/src/main/java/cc/fascinated/controller/HomeController.java +++ b/src/main/java/cc/fascinated/controller/HomeController.java @@ -17,8 +17,7 @@ public class HomeController { @RequestMapping(value = "/") public String home(Model model) { - model.addAttribute("url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid); - model.addAttribute("avatar_url", Config.INSTANCE.getWebPublicUrl() + "/player/avatar/" + exampleUuid); + model.addAttribute("player_example_url", Config.INSTANCE.getWebPublicUrl() + "/player/" + exampleUuid); return "index"; } } diff --git a/src/main/java/cc/fascinated/controller/PlayerController.java b/src/main/java/cc/fascinated/controller/PlayerController.java index ad67ed3..0cb831e 100644 --- a/src/main/java/cc/fascinated/controller/PlayerController.java +++ b/src/main/java/cc/fascinated/controller/PlayerController.java @@ -21,7 +21,9 @@ import java.util.concurrent.TimeUnit; public class PlayerController { private final CacheControl cacheControl = CacheControl.maxAge(1, TimeUnit.HOURS).cachePublic(); - @NonNull private final SkinPart defaultHead = Objects.requireNonNull(Skin.getDefaultHead(), "Default head is null"); + @NonNull + private final SkinPart defaultHead = Objects.requireNonNull(Skin.getDefaultHead(), "Default head is null"); + private final PlayerService playerManagerService; @Autowired diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index c338ca2..0779cab 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -19,8 +19,7 @@

Wrapper for the Minecraft APIs to make them easier to use.

-

Player Data: ???

-

Avatar Url: ???

+

Player Data: ???

\ No newline at end of file