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

Multiple server query

Comments in 'Plugin Development' started by andre_the_gamer, Jul 19, 2015.

  1. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    Hi i would like to ask how can i query both og my server port 19142 and 19132 and to make same servers shows the same amount of players and the minepocket server list site to shows players that are in the port 19132 and 19132. ?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Assuming they are on the same machine, you can consider saving your number of players on a file and let another server at the same machine read that file.
  3. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    Hi, I dont really understand can you maybe explain please!
  4. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    He might mean use MySQL, save number of players file to MySQL, and let main server read the file from MySQL :)
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    No need it. Just link the file together. Why use MySQL?
  6. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    You know how to link? I can only think that MySQL can do the linking stuffs :p
    Anyway, I use query to link slots... and I just got terrible issue yesterday when I run Survival 5, online players show 1400+ after I add one more query pointed to Survival 5.... It's even make minecraftpocket-servers show my server offline after I did that.... Seems like hpSlots can't have too much queries....
  7. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    How can i do that
  8. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    I just need to query both of my server. I want them to be able to show the same amount of players how can i do that?.
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
  10. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
  11. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Yes, then do this and make a plugin that writes player number. Then QueryRegenEvent.
  12. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    Hi im having issues do you have any premade plugins that will do it pls
  13. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    lol. I don't think my way is the best.
  14. tigerza118
    Offline

    tigerza118 Active Member

    Joined:
    Jan 31, 2015
    Posts:
    100
    Minecraft User:
    tigerza117
    i am use mysql
  15. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    How do i use mysql
  16. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Guys, is MySQL better or query? Cuz I'm using query like this:

    Lobby 2 installed hpSlots to query All survival servers (I have 5 for now)

    Lobby 3 installed hpSlots to query All PotionPVP servers (I have 3 for now, 1 is building map)

    Lobby 4 installed hpSlots to query All Creative servers (I have 2 for now)

    And last, I installed hpSlots on Lobby 1 to query Lobby 2, 3 and 4 and add it all up..

    Is this a best way? I think its not :/ And how to use MySQL to link slots?..
  17. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    My query way is sucks when one of a Lobby restart or offline... Let's say Lobby 2 is offline, cause Lobby 1 can't get data from Lobby 2, means that it can't get all Survival data too... :/
  18. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    That cool what script did you use to query multiple servers? and can you share it please.
  19. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    hpSlots is private I think. hp is happyparty.
  20. andre_the_gamer
    Offline

    andre_the_gamer Active Member

    Joined:
    Feb 5, 2015
    Posts:
    112
    Minecraft User:
    Andre_The_Gamer
    I just want to query multiple servers and that why i ask him

Share This Page

Advertisement