A Flarum extension that allow users to use the head of a Minecraft skin as avatar.
composer require nearata/flarum-ext-minecraft-avatars
composer update nearata/flarum-ext-minecraft-avatars php flarum cache:clear
composer remove nearata/flarum-ext-minecraft-avatars php flarum cache:clear
Nearata Nice idea, thank you!
Nearata Hey, this is kinda broken. I cant remove the minecraft avatar anymore or upload a new one.. Even if i remove the entrie in the database table it just breaks.
use_button
UI
Minecraft Avatars
SettingsPage
AvatarEditor
note
Translations
title
Change Minecraft Avatar
Nearata/flarum-ext-minecraft-avatars#2
How do I find the composer?
shmezi welcome to Flarum. Can you describe what you're having issue with?
Installation of Flarum and its extension is done through Composer, see the Flarum hosting requirements.
clarkwinkelmann Hi, I am using the free hosting that is offered, how can I install this extension on my forum?
shmezi If you're talking about FreeFlarum, please note that the service is provided by the community and not the Flarum team. Please keep FreeFlarum-related conversations in the FreeFlarum discussion.
Can the avatar be changed automatically?
krapas unfortunately, that cannot be accomplished with this extension 🙂 though, that doesn't stop the developer of this extension or any other extension developer from using the same API as this extension is utilizing to sync Minecraft avatars automatically based on the user's Flarum username 😉
[deleted] it'll probably be helpful for the author if you can find a PHP or javascript error.
It's also a good idea to share the output of php flarum info.
php flarum info
If you are on Flarum beta 14 it will be expected for the extension to break since it didn't receive an update yet.
Updated to beta 14
Does not work on beta 15
i've draft a new release that fixes a fetching problem with the previous api. i'm using Crafatar now.
version 1.3.0
Nearata I noticed there were issues with the Minotar API on some cases. Unfortunately Crafatar doesn't support Usernames, so those would have to be converted to UUID when a username is submitted. Otherwise this update breaks current currently submitted usernames.
The URL also currently contains two slashes in it, you might want to fix that "https://crafatar.com//avatars/{player}?size=64".
This was marked incompatible by @luceos but is in use on a Beta 15 board.
Kakifrucht Unfortunately Crafatar doesn't support Usernames, so those would have to be converted to UUID when a username is submitted. Otherwise this update breaks current currently submitted usernames.
you are right, usernames are not supported on Crafatar but also no longer supported by Mojang API. Also, if a name change happens, the avatar doesn't breaks if UUID is used.
Kakifrucht The URL also currently contains two slashes in it
damn copy paste
Kakifrucht This was marked incompatible by @luceos but is in use on a Beta 15 board.
yes beta 15 compatible
Nearata also no longer supported by Mojang API
It's still supported as far as I can tell: https://wiki.vg/Mojang_API#Username_-%3E_UUID_at_time
Would it be possible to integrate resolving of usernames again? This would only have to happen when submitting the username for the first time, afterwards it could probably just be stored as UUID.