mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
just in case
This commit is contained in:
parent
1bd28a2b6d
commit
2e374fb09c
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ class AchievementAPI{
|
|||
}else if(!($issuer instanceof Player) || $this->server->api->ban->isOp($issuer->iusername)){
|
||||
$player = $this->server->api->player->get($params[0]);
|
||||
$data = $player instanceof Player ? $player->data : $this->server->api->player->getOffline(trim($params[0]), false);
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$data){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue