[Python] Minecraft Server Pinger

Discussão em 'Python' iniciado por Stack, Março 26, 2025.

  1. Stack

    Stack Membro Participativo

    In this python script I wanted to try and Ping my Minecraft Java Server so it could always stay online. I'm not to familiar with servers, especially Minecraft Servers. Does anyone know how to do this, or how to fix my Script.

    import requests
    import time

    #Minecraft Server Pinger

    server_ip="Server.aternos.me"

    port={"Server.aternos.me": 12345678910}
    # Server IP Port

    while True:
    time.sleep(280)
    server_ping=requests.post(server_ip, port)
    print(server_ping)

    Continue reading...

Compartilhe esta Página