summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authordestruc7i0n <destruc7i0n@users.noreply.github.com>2021-12-03 23:55:20 -0500
committerdestruc7i0n <destruc7i0n@users.noreply.github.com>2021-12-03 23:55:20 -0500
commit35a49f1c8e01dfd064bc0c4ad7681c24029ef5f7 (patch)
tree2a21767a0f3419f37e297bc728f14cb8940d59dd
parentability to specify custom avatar provider (diff)
downloadshulker-35a49f1c8e01dfd064bc0c4ad7681c24029ef5f7.tar.gz
shulker-35a49f1c8e01dfd064bc0c4ad7681c24029ef5f7.zip
switched to mc-heads.net avatar api
-rw-r--r--README.md2
-rw-r--r--config.example.json2
-rw-r--r--src/Discord.ts2
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)
   }