From 35a49f1c8e01dfd064bc0c4ad7681c24029ef5f7 Mon Sep 17 00:00:00 2001 From: destruc7i0n Date: Fri, 3 Dec 2021 23:55:20 -0500 Subject: switched to mc-heads.net avatar api --- README.md | 2 +- config.example.json | 2 +- src/Discord.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7ac771a..d4476cb 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ tail -F /PATH_TO_MINECRAFT_SERVER_INSTALL/logs/latest.log | grep --line-buffered "SERVER_NAME": "Shulker", /* The username used when displaying any server information in chat, e.g., Server - Shulker : Server message here*/ "SERVER_IMAGE": "", /* Image for the server when sending such messages (if enabled below). Only for WebHooks. */ - "HEAD_IMAGE_URL": "https://minotar.net/helm/%uuid%/256.png", /* Url to get the heads for the webhook, %uuid% is replaced with the uuid of the player */ + "HEAD_IMAGE_URL": "https://mc-heads.net/avatar/%uuid%/256", /* Url to get the heads for the webhook, %uuid% is replaced with the uuid of the player */ "DEFAULT_PLAYER_HEAD": "c06f89064c8a49119c29ea1dbd1aab82", /* UUID of player with the default head to use (currently is MHF_Steve) */ "SHOW_SERVER_STATUS: false, /* Shows when the server turns on and off e.g., Server - Shulker : Server is online */ "SHOW_PLAYER_CONN_STAT": false, /* Shows player connection status in chat, e.g., Server - Shulker : TheMachine joined the game */ diff --git a/config.example.json b/config.example.json index 2aef660..33b0ff6 100644 --- a/config.example.json +++ b/config.example.json @@ -34,7 +34,7 @@ "SERVER_NAME": "Shulker", "SERVER_IMAGE": "", - "HEAD_IMAGE_URL": "https://minotar.net/helm/%uuid%/256.png", + "HEAD_IMAGE_URL": "https://mc-heads.net/avatar/%uuid%/256", "DEFAULT_PLAYER_HEAD": "c06f89064c8a49119c29ea1dbd1aab82", "SHOW_SERVER_STATUS": false, "SHOW_PLAYER_CONN_STAT": false, diff --git a/src/Discord.ts b/src/Discord.ts index b001c8c..a938f09 100644 --- a/src/Discord.ts +++ b/src/Discord.ts @@ -220,7 +220,7 @@ class Discord { } private getHeadUrl(uuid: string): string { - const url = this.config.HEAD_IMAGE_URL || 'https://minotar.net/helm/%uuid%/256.png' + const url = this.config.HEAD_IMAGE_URL || 'https://mc-heads.net/avatar/%uuid%/256' return url.replace(/%uuid%/, uuid) } -- cgit 1.4.1