Blueprint Coding Help
How to send power actions to servers inside blueprint code? using the server url or server short id without needing any API keys?
Like send power actions (start, stop, restart) via the server short id (like abcd1234) or the server url (like https://panel.mydomain.com/server/abcd1234) via the code without an API key in blueprint or just generaly
Using the API Key should be fine but I dont really know how to use them and dont know how well I can hide it form my users so I want to send power actions via the code without using an API Key preferably.
11 Replies
There isn't much in terms of documentation for this kind of thing as far as I know, so I usually look at the source code for pterodactyl and try and find whatever was done there and just copy the parts of it that I need
Alrighty
Thanks
I have now done this however
When doing the mass start, restart and stop the servers dont update like if they are online and I hit the stop they stop but the green tint around them doesnt change. (nebula)
After hitting stop:

I have to like wait 5-10 seconds then refresh the page for it to update
Any fix to this?
these don't update in real-time
you somehow have to tell it to refetch
Is that a thing in nebula code or pterodactyl?
pterodactyl
May as well keep using this for other questions right?
Alrighty ty I will look into that!
Buy can blueprint pull node data like there amount of Ram, storage or CPU type? Or does the REQUIRE a wings update/re-build with custom code?
requires wings-rs or something custom
Whats wings-rs?
its a rewrite of wings in rust with a few extra features