diff --git a/includes/user.class.php b/includes/user.class.php index 8678d44c..e12a0054 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-03 13:25:55 + * @Last Modified time: 2016-02-03 13:31:10 */ class user @@ -110,9 +110,10 @@ class user public function getJsonProfile() { header('Content-type: application/json'); if ($this->is_registered) { + $json['player_name'] = $this->uname; $preference = $this->getPreference(); - $json['model'] = $preference; - $json['skin'] = $this->getTexture('skin'); + $json['model_preference'] = [$preference]; + $json['skins'][$preference] = $this->getTexture('skin'); $json['cape'] = $this->getTexture('cape'); } else { $json['errno'] = 1;