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

Query multiple servers in server list

Comments in 'Plugin Development' started by myst02, Jul 8, 2015.

  1. myst02
    Offline

    myst02 Active Member

    Joined:
    Mar 23, 2015
    Posts:
    97
    Minecraft User:
    myst02
    Hi,

    how can I query multiple servers in server list? That means it shows the players of all my connected servers in the server list (like LBSG or SurvivalHive have)
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    There are many Queries on Google(mostly with example), or code one yourself. You can also use MySQL to save the Players Amount in a Database and use QueryRegenerateEvent to set the slots(this even will be called automatically every few ticks)
    myst02 likes this.
  3. Goerick
    Offline

    Goerick Active Member

    Joined:
    Jan 24, 2014
    Posts:
    250
    Minecraft User:
    goerick
    Yup! thats how some servers (cough* C%B%%T%%H) cheat player amounts. You can have for example, 2 layers on your server but on sites that use query to verify player amount like minecraft pocket server you can go to like 273 players and so on.
    myst02 likes this.
  4. myst02
    Offline

    myst02 Active Member

    Joined:
    Mar 23, 2015
    Posts:
    97
    Minecraft User:
    myst02
    Can someone give me a code example? I read that in other threads but I didn't really understand.
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
  6. myst02
    Offline

    myst02 Active Member

    Joined:
    Mar 23, 2015
    Posts:
    97
    Minecraft User:
    myst02
    Thanks! I got it.

Share This Page

Advertisement