Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Wynncraft Api- How Do I Get Server Uptime?

Discussion in 'Questions' started by Shmoolik HaKipod, Dec 29, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. Shmoolik HaKipod

    Shmoolik HaKipod HELLO I AM A PERSON OK BYE

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    25
    Hello! I'm looking for a way to get server uptime (meaning for how long a server was running) from the Wynncraft API. Is there any way to do that?

    Thanks
     
  2. RicRicc

    RicRicc Mythics: 0 Chests: 10K+ CHAMPION

    Messages:
    474
    Likes Received:
    191
    Trophy Points:
    70
    Minecraft:
    I believe you will have to poll via the what servers are up api call and keep an internal timer for the server uptime. There is not a direct api call for server uptime. There is a discord server to ask further questions:

    Wynncraft-API Discord: https://discord.gg/nUFD9xX

    Please use this post or the discord to ask questions!

    That was taken from: https://forums.wynncraft.com/threads/wynncraft-public-api-documentation.222454/
     
  3. Shmoolik HaKipod

    Shmoolik HaKipod HELLO I AM A PERSON OK BYE

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    25
    Having an internal timer could work, but I'm pretty sure that that will require my app to stay online 24/7, and that's not ideal.
    Regardless, I didn't know about the Discord server, I'll be sure to ask over there.

    Thanks for the advice!
     
Thread Status:
Not open for further replies.