Skip to content

Commit

Permalink
Disable the JSON friends list endpoint as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKorlaar committed Mar 20, 2023
1 parent 55c0fab commit 8032e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Friends/FriendsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ public function getFriends($uuid) {
* @throws HypixelPHPException
*/
public function getFriendsListJSON(string $uuid, int $max = 60): ?array {
throw new HypixelFetchException(trans('friends.api_disabled_warning'));

$api = new HypixelAPI();

$player = $api->getPlayerByUuid($uuid);
Expand Down

0 comments on commit 8032e95

Please sign in to comment.