mattmalec / Pterodactyl4J

Java wrapper for the API of Pterodactyl
Apache License 2.0
117 stars 30 forks source link

Missing argument in route compile when you try to use `EditAllocation#execute` method. #68

Open luiz-otavio opened 1 year ago

luiz-otavio commented 1 year ago

I know it's not available under the API and I tested to force if I could use that function to change a primary allocation of my server, but that didn't work and it sent a stack trace about the exception:

Error Compiling Route: [application/nodes/{node_id}/allocations/{allocation_id}], incorrect amount of parameters provided. Expected: 2, Provided: 1
Goksi commented 1 year ago

It seems that editing allocations is not even available in pterodactyl api, but you can always change primary allocation using using ClientAllocationManager#setPrimary