diff --git a/src/main/java/net/thenextlvl/character/plugin/character/PaperSkinFactory.java b/src/main/java/net/thenextlvl/character/plugin/character/PaperSkinFactory.java index d7ddcec..b8e088f 100644 --- a/src/main/java/net/thenextlvl/character/plugin/character/PaperSkinFactory.java +++ b/src/main/java/net/thenextlvl/character/plugin/character/PaperSkinFactory.java @@ -10,6 +10,7 @@ import java.io.File; import java.net.URL; +import java.util.Objects; import java.util.concurrent.CompletableFuture; // https://docs.mineskin.org/docs/category/mineskin-api @@ -21,7 +22,7 @@ public PaperSkinFactory(CharacterPlugin plugin) { .requestHandler((userAgent, apiKey, timeout, gson) -> new Java11RequestHandler(userAgent, apiKey.isBlank() ? null : apiKey, timeout, gson)) .userAgent("Characters/" + plugin.getPluginMeta().getVersion()) - .apiKey("") + .apiKey(Objects.requireNonNullElse(System.getenv("MINESKIN_API_KEY"), "")) .timeout(3000) .build(); }