fixed shits
This commit is contained in:
parent
fc0b7c51ed
commit
1a64c0a583
@ -3,7 +3,7 @@
|
|||||||
* @Author: printempw
|
* @Author: printempw
|
||||||
* @Date: 2016-01-16 23:01:33
|
* @Date: 2016-01-16 23:01:33
|
||||||
* @Last Modified by: prpr
|
* @Last Modified by: prpr
|
||||||
* @Last Modified time: 2016-02-03 13:25:55
|
* @Last Modified time: 2016-02-03 13:31:10
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class user
|
class user
|
||||||
@ -110,9 +110,10 @@ class user
|
|||||||
public function getJsonProfile() {
|
public function getJsonProfile() {
|
||||||
header('Content-type: application/json');
|
header('Content-type: application/json');
|
||||||
if ($this->is_registered) {
|
if ($this->is_registered) {
|
||||||
|
$json['player_name'] = $this->uname;
|
||||||
$preference = $this->getPreference();
|
$preference = $this->getPreference();
|
||||||
$json['model'] = $preference;
|
$json['model_preference'] = [$preference];
|
||||||
$json['skin'] = $this->getTexture('skin');
|
$json['skins'][$preference] = $this->getTexture('skin');
|
||||||
$json['cape'] = $this->getTexture('cape');
|
$json['cape'] = $this->getTexture('cape');
|
||||||
} else {
|
} else {
|
||||||
$json['errno'] = 1;
|
$json['errno'] = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user