Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

The Two Ultimate RANDOM Questions!

Comments in 'Plugin Development' started by Samueljh1, Mar 16, 2015.

  1. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    1. PlayerInteractEvent, `$event->getItem()->isHoe()` and `$event->getBlock() instanceof Grass`

    2. Using server status query. That's more complicated than you think it to be.
    iksaku, Samueljh1 and EvolSoft like this.
  3. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    About the query I think that the main server counts all players in sg1, sg2, sg3, ... and then sum all. Then the main server sends this data using PM query
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I tend to believe that lifeboat used something other than PocketMine query, because it sends extra data and one needs to wait for the result from every other server. I tend to think there's a central server managing these data, and possible no TCP/IP connections involved (maybe, like, Unix sockets? Just a wild guess).
    iksaku and EvolSoft like this.
  5. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    I don't know how LBSG works and I've never played on it but I think you are right
  6. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    Maybe he just modified what query sends out.
    EvolSoft likes this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    That's still slow. Lifeboat has so many servers. It is insensible to query each server every time. It is more sensible to let one central query server collect the info and servers query it.
    iksaku likes this.
  8. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    so the main server counts all the other servers' player count and sets the query player count to the total?
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. I don't know what's happening in lifeboat, but it shoud be that sub servers should be not querying other sub servers because it would be slow. they should only connect to the main server to fetch the data.
    iksaku and iJoshuaHD like this.

Share This Page

Advertisement