Getting server Id from inside a running instance #4615
-
I am developing a plugin targeting Minecraft servers, which will send a restart and/or kill signal to perodactyl, should the server not tick for a specified amount of seconds. Is there any way to get the current server's uuid, from inside the container without modifying files outside the container? or can support for this be added? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The UUID is a variable that is passed into the container. You can use that with a get on servers to get the server id itself. I am pretty sure it's the variable |
Beta Was this translation helpful? Give feedback.
-
All default variables are documented here. It is |
Beta Was this translation helpful? Give feedback.
All default variables are documented here.
It is
P_SERVER_UUID
as seen in the source code.