Use product limmit instead of hardcoded one
This commit is contained in:
parent
55ae15be60
commit
5333139204
|
@ -33,7 +33,8 @@ class Pterodactyl
|
|||
* @param int $pterodactylId
|
||||
* @return mixed
|
||||
*/
|
||||
public function getUser(int $pterodactylId){
|
||||
public function getUser(int $pterodactylId)
|
||||
{
|
||||
$response = self::client()->get("/application/users/{$pterodactylId}");
|
||||
|
||||
if ($response->failed()) return $response->json();
|
||||
|
@ -167,7 +168,7 @@ class Pterodactyl
|
|||
"feature_limits" => [
|
||||
"databases" => $server->product->databases,
|
||||
"backups" => $server->product->backups,
|
||||
"allocations" => 1
|
||||
"allocations" => $server->product->allocations,
|
||||
],
|
||||
"allocation" => [
|
||||
"default" => $allocationId
|
||||
|
|
Loading…
Reference in a new issue