diff --git a/src/API/AchievementAPI.php b/src/API/AchievementAPI.php index b81a2549..166c9c1d 100644 --- a/src/API/AchievementAPI.php +++ b/src/API/AchievementAPI.php @@ -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){