Git Product home page Git Product logo

Comments (10)

gekigek99 avatar gekigek99 commented on June 19, 2024 1

Ok I have found a solution for this problem.

I will write something in python completely detached from pterodactyl panel in the next weeks so that it works whatever the pterodactyl version is.

Please contact me on
[email protected]
for further informations so that I can close this issue.

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on June 19, 2024

Yea sure I may be able to help you but i need a little more info!

Why do you need specifically javascript?
How are you trying to integrate this script in the pterodactyl panel?
What is your general situation? (what games are we talking about? how many? is it all on one machine?)
Do you want to use pterodactyl because it uses Docker so the start and stop of the server is immediate?

just to make an idea of your specific case... mybe we can make it work without having to rewrite the entire pterodactyl repo... 👍

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on June 19, 2024

Do you need to visualize remotely with a browser all the servers running or you just need to run multiple game servers on the same machine?

from minecraft-server-hibernation.

Ho2x avatar Ho2x commented on June 19, 2024

Hello,
Thank you for your positive response.
So for a little summary.
I am busy redoing the administration of my servers with the pterodactyl panel.
I currently have two centos 7 servers.
Indeed pterodactyl uses docker and Javascript well.
I don't know more than that.
I would like all minecraft servers to be automatically, when creating the server, with a hibernation system.
Kind of like the McMyAdmin panel suggests.

Thank you for your time and your work.

from minecraft-server-hibernation.

Ho2x avatar Ho2x commented on June 19, 2024

Yes, I use the browser to manage all the servers (pterodactyl panel) if your code can be executed when creating a new server this would be perfect. An option for the user seems to me to be too complicated (enable-disable sleep mod)
But if I already know how to force minecraft vanilla or mod servers to have a system like McMyAdmin. This would save me a lot of cpu and ram resource for servers with zero players.

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on June 19, 2024

i could write an external program that launches automatically the docker server (and i would write some config file so that it is easy to add each docker id in a simple manner)
if you run from terminal this command and while keeping it running you check the panel, does it shows as running?:
docker run -i -t <image-id> /bin/bash
(you should find the image-id in "server configuration" with the variable name: "UUID / Docker Container ID")

from minecraft-server-hibernation.

Ho2x avatar Ho2x commented on June 19, 2024

Indeed, it seems to stay online

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on June 19, 2024

yea i mean...

  • from the browser set the minecraft server offline
  • then run the command via ssh or terminal
  • finally check if on the browser the minecraft server is shown as launched (and everything looks as normal)

if it works i can find a workaround that can work even if pterodactyl gets updated/changed

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on June 19, 2024

@Ho2x if you are still interested i wrote a cool program that does exacly this for pterodactyl

I've uploaded it on mc market and waiting for verification but if you need it I can send it to you

from minecraft-server-hibernation.

gekigek99 avatar gekigek99 commented on June 19, 2024

@Ho2x pterodactyl server hibernation is finally out!

You check it out here!!!

from minecraft-server-hibernation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.