A drop-in script that works as a Citizens extension to set NPC skins from a direct image URL.
(Based on an old script by Mergu of the same concept, but updated/modernized/cleaned for general public usage)
Hastebin: https://one.denizenscript.com/haste/64151 <-- Most users, just click here and click "Download the script"
GitHub current version: https://github.com/mcmonkeyprojects/DenizenSampleScripts/blob/master/npc_skin_from_url.dsc
NOTE TO USERS COMING FROM CITIZENS:
This is a Denizen script! Denizen is a scripting engine that functions as a plugin for Spigot, and deeply integrates into Citizens to add a lot of extra features to your NPCs. Get Denizen on Spigot here: https://www.spigotmc.org/resources/denizen.21039/ or learn more about Denizen here: https://guide.denizenscript.com/guides/background/what-is-denizen.html
# Installation:
# Just put the script in your scripts folder and reload.
#
# Usage:
# Type command: /npc skin --url (url here)
#
# If you have a local file you want to use,
# consider uploading it to an image host like imgur.
# If you do, be sure to use the direct image URL (ends with ".png") as opposed to the album URL.
#
# Examples:
# /npc skin --url https://gamepedia.cursecdn.com/minecraft_gamepedia/3/37/Steve_skin.png
# /npc skin --url https://gamepedia.cursecdn.com/minecraft_gamepedia/f/f2/Alex_skin.png
UPDATE: This is now no longer needed, as Citizens added an equivalent system internally.
(Based on an old script by Mergu of the same concept, but updated/modernized/cleaned for general public usage)
Hastebin: https://one.denizenscript.com/haste/64151 <-- Most users, just click here and click "Download the script"
GitHub current version: https://github.com/mcmonkeyprojects/DenizenSampleScripts/blob/master/npc_skin_from_url.dsc
NOTE TO USERS COMING FROM CITIZENS:
This is a Denizen script! Denizen is a scripting engine that functions as a plugin for Spigot, and deeply integrates into Citizens to add a lot of extra features to your NPCs. Get Denizen on Spigot here: https://www.spigotmc.org/resources/denizen.21039/ or learn more about Denizen here: https://guide.denizenscript.com/guides/background/what-is-denizen.html
# Installation:
# Just put the script in your scripts folder and reload.
#
# Usage:
# Type command: /npc skin --url (url here)
#
# If you have a local file you want to use,
# consider uploading it to an image host like imgur.
# If you do, be sure to use the direct image URL (ends with ".png") as opposed to the album URL.
#
# Examples:
# /npc skin --url https://gamepedia.cursecdn.com/minecraft_gamepedia/3/37/Steve_skin.png
# /npc skin --url https://gamepedia.cursecdn.com/minecraft_gamepedia/f/f2/Alex_skin.png
UPDATE: This is now no longer needed, as Citizens added an equivalent system internally.