VizuaaLOG / pterodactyl-php

PHP Client library for interacting with the Pterodactyl API.
MIT License
7 stars 1 forks source link

$panel->users->all(); shows only 55 users #7

Open deamvw opened 2 years ago

deamvw commented 2 years ago

Hello there,

It seems that something goes wrong with the list of all users while requesting the list via the API. Only first 55 users are displayed (or the first page of Pterodactyl user list). Is there a way to fix this?

Thanks! Dean

deamvw commented 2 years ago

Any update?

VizuaaLOG commented 1 year ago

Hey! Apologies I didn't receive a notification from Github 🤔.

I suspect the all() method is not taking into account that pagination is available, is this a recent change with Pterodactyl or is something I just overlooked.

Unfortunately, I no longer run a Pterodactyl server and so would be unable to fix and/or test this.

Happy to accept a PR to ensure that method properly fetches all the pages.