hcgcloud / pterodactyl-sdk

Pterodactyl Panel PHP SDK/API wrapper
https://hcgcloud.github.io/pterodactyl-sdk-docs/
MIT License
27 stars 25 forks source link

Is it possible to send a console command using the Pterodactyl API? #5

Closed tommyvange closed 4 years ago

tommyvange commented 4 years ago

Is it possible to send a command to a server console using the Pterodactyl API and this library?

tyson239 commented 4 years ago

yes, use

$pterodactyl->commandServer($serverIdentifier, $command);

or

$server->command($command);

only works with account api key.

tommyvange commented 4 years ago

It worked like a charm! Thank you very much!