1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Update query

Discussion in 'Development' started by LucGamesDE, May 29, 2017.

  1. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    I have the QueryRegenerate event where I edit the player count. This is working. If a player of another server quits the server the main server gets a message to update the query (also working). But how can I now update the query?
    My idea:
    Login a kick a fake player?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Use a repeating task that runs every, let's say 30 seconds which will update the query rather than updating it only if a player joins or quits. It's a network so it'll be hard to keep a track of player joins and quits.
     
  3. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    But how do I update the query? That was my problem
     
  4. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    SalmonDE likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.