Add player->outfit_url attribute

This commit is contained in:
slawkens
2025-01-09 22:41:34 +01:00
parent c769962e39
commit 3b5be1a8db
3 changed files with 7 additions and 1 deletions

View File

@@ -80,6 +80,10 @@ class Player extends Model {
});
}
public function getOutfitUrlAttribute() {
return setting('core.outfit_images_url') . '?id=' . $this->looktype . (!empty($this->lookaddons) ? '&addons=' . $this->lookaddons : '') . '&head=' . $this->lookhead . '&body=' . $this->lookbody . '&legs=' . $this->looklegs . '&feet=' . $this->lookfeet;
}
public function getOnlineStatusAttribute()
{
global $db;