mirror of
https://github.com/NamelessMC/Nameless
synced 2026-08-18 06:29:04 -04:00
* Update Avatar config to use Settings system rather than Cache
* wip
* wip
* wip
* wip
* 🔥 built in avatar source
* fix Visage source
* lint
* Update 230.php
25 lines
632 B
PHP
25 lines
632 B
PHP
<?php
|
|
/**
|
|
* Visage avatar source class
|
|
*
|
|
* @package Modules\Core\Avatars
|
|
* @author Aberdeener
|
|
* @version 2.0.0-pr12
|
|
* @license MIT
|
|
*/
|
|
class VisageAvatarSource extends AvatarSourceBase {
|
|
|
|
public function __construct() {
|
|
$this->_name = 'Visage';
|
|
$this->_base_url = 'https://vzge.me/';
|
|
$this->_perspectives_map = [
|
|
'face' => 'face',
|
|
'head' => 'head',
|
|
'bust' => 'bust'
|
|
];
|
|
}
|
|
|
|
public function getUrlToFormat(string $perspective): string {
|
|
return $this->_base_url . $this->getRelativePerspective($perspective) . '/{size}/{identifier}';
|
|
}
|
|
}
|