pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.86k stars 1.75k forks source link

Show user's server location on the server page #4282

Open yibfozzy opened 2 years ago

yibfozzy commented 2 years ago

Is there an existing feature request for this?

Describe the feature you would like to see.

At the moment the user cannot see the location name of their server, so it might be useful to have this information on a server page or in the 'Manage' menu along the 'Node' hostname.

Describe the solution you'd like.

Add the location name in the 'Settings' menu in the 'Debug information' block, or add it in the 'Console' menu near the IP address info.

Additional context to this request.

No response

JimmyK2008 commented 2 years ago

Why is it as Spam marked. This is not Spam xD Goid Idea! I hope this coming in the next Update 👍


~ PVPMaster0001 (Developing Pterodactyl Scripts)

ItsLeon15 commented 2 years ago

If you want to see the Server Node that the server is running on you can add the following to ServerDetailsBlock.tsx.

const node = ServerContext.useStoreState(state => state.server.data!.node);

<p css={tw`text-xs mt-2`}>
    <FontAwesomeIcon icon={faSitemap} fixedWidth css={tw`mr-1`}/> Node: {node}
</p>

I presume this has changed since 1.8 but it's the same process. Get the Node Name and output it.